From 789775b55d4632378c407b80844b05b44e905c88 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Fri, 16 Aug 2024 09:48:52 -0600 Subject: [PATCH] chore: use new webhook fixtures --- examples | 2 +- tests/cassettes/test_address_all.yaml | 72 +- tests/cassettes/test_address_create.yaml | 21 +- .../test_address_create_and_verify.yaml | 21 +- .../cassettes/test_address_create_verify.yaml | 36 +- .../test_address_create_verify_array.yaml | 34 +- .../test_address_create_verify_strict.yaml | 21 +- .../cassettes/test_address_get_next_page.yaml | 143 +- tests/cassettes/test_address_retrieve.yaml | 42 +- tests/cassettes/test_address_verify.yaml | 44 +- .../test_address_verify_invalid_address.yaml | 34 +- tests/cassettes/test_all_api_keys.yaml | 43 +- .../test_authenticated_user_api_keys.yaml | 77 +- .../test_batch_add_remove_shipment.yaml | 195 +- tests/cassettes/test_batch_all.yaml | 30 +- tests/cassettes/test_batch_buy.yaml | 44 +- tests/cassettes/test_batch_create.yaml | 24 +- .../cassettes/test_batch_create_scanform.yaml | 77 +- tests/cassettes/test_batch_label.yaml | 68 +- tests/cassettes/test_batch_retrieve.yaml | 53 +- .../test_beta_get_lowest_stateless_rate.yaml | 80 +- ..._referral_customer_add_payment_method.yaml | 16 +- ...ta_referral_customer_refund_by_amount.yaml | 12 +- ...ferral_customer_refund_by_payment_log.yaml | 12 +- .../test_beta_retrieve_stateless_rates.yaml | 76 +- tests/cassettes/test_carrier_account_all.yaml | 44 +- .../test_carrier_account_create.yaml | 36 +- .../test_carrier_account_create_ups.yaml | 36 +- ...r_account_create_with_custom_workflow.yaml | 12 +- .../test_carrier_account_delete.yaml | 36 +- .../test_carrier_account_retrieve.yaml | 60 +- .../cassettes/test_carrier_account_type.yaml | 156 +- .../test_carrier_account_update.yaml | 76 +- .../test_carrier_account_update_ups.yaml | 82 +- tests/cassettes/test_child_user_api_keys.yaml | 114 +- tests/cassettes/test_claim_all.yaml | 94 +- tests/cassettes/test_claim_cancel.yaml | 396 ++-- tests/cassettes/test_claim_create.yaml | 380 ++-- tests/cassettes/test_claim_get_next_page.yaml | 198 +- tests/cassettes/test_claim_retrieve.yaml | 400 ++-- tests/cassettes/test_customs_info_create.yaml | 27 +- .../cassettes/test_customs_info_retrieve.yaml | 54 +- tests/cassettes/test_customs_item_create.yaml | 20 +- .../cassettes/test_customs_item_retrieve.yaml | 42 +- tests/cassettes/test_demo_hooks.yaml | 66 - tests/cassettes/test_endshipper_all.yaml | 14 +- tests/cassettes/test_endshipper_create.yaml | 18 +- tests/cassettes/test_endshipper_retrieve.yaml | 38 +- tests/cassettes/test_endshipper_update.yaml | 38 +- tests/cassettes/test_error.yaml | 14 +- tests/cassettes/test_event_all.yaml | 38 +- tests/cassettes/test_event_get_next_page.yaml | 76 +- tests/cassettes/test_event_retrieve.yaml | 36 +- .../test_event_retrieve_all_payloads.yaml | 112 +- .../test_event_retrieve_payload.yaml | 108 +- tests/cassettes/test_insurance_all.yaml | 193 +- tests/cassettes/test_insurance_create.yaml | 189 +- .../test_insurance_get_next_page.yaml | 602 ++++- tests/cassettes/test_insurance_refund.yaml | 96 +- tests/cassettes/test_insurance_retrieve.yaml | 237 +- tests/cassettes/test_order_buy.yaml | 676 +++--- tests/cassettes/test_order_create.yaml | 349 ++- tests/cassettes/test_order_get_rates.yaml | 627 +++--- tests/cassettes/test_order_lowest_rate.yaml | 305 ++- tests/cassettes/test_order_retrieve.yaml | 645 +++--- tests/cassettes/test_parcel_create.yaml | 23 +- tests/cassettes/test_parcel_retrieve.yaml | 42 +- tests/cassettes/test_pickup_all.yaml | 78 +- tests/cassettes/test_pickup_buy.yaml | 197 +- tests/cassettes/test_pickup_cancel.yaml | 231 +- tests/cassettes/test_pickup_create.yaml | 167 +- .../cassettes/test_pickup_get_next_page.yaml | 174 +- tests/cassettes/test_pickup_lowest_rate.yaml | 167 +- tests/cassettes/test_pickup_retrieve.yaml | 203 +- tests/cassettes/test_rate_retrieve.yaml | 189 +- ...est_referral_customer_add_credit_card.yaml | 78 +- .../cassettes/test_referral_customer_all.yaml | 26 +- .../test_referral_customer_create.yaml | 26 +- .../test_referral_customer_update.yaml | 50 +- .../test_referral_get_next_page.yaml | 50 +- tests/cassettes/test_refund_all.yaml | 22 +- tests/cassettes/test_refund_create.yaml | 290 ++- .../cassettes/test_refund_get_next_page.yaml | 22 +- tests/cassettes/test_refund_retrieve.yaml | 46 +- tests/cassettes/test_report_all.yaml | 51 +- .../cassettes/test_report_create_report.yaml | 18 +- ...report_create_with_additional_columns.yaml | 18 +- .../test_report_create_with_columns.yaml | 18 +- .../cassettes/test_report_get_next_page.yaml | 112 +- .../test_report_retrieve_shipment_report.yaml | 40 +- tests/cassettes/test_request_hooks.yaml | 20 +- tests/cassettes/test_response_hooks.yaml | 21 +- .../test_retrieve_carrier_metadata.yaml | 1939 ++++++++++------- ...etrieve_carrier_metadata_with_filters.yaml | 94 +- ...test_retrieve_estimated_delivery_date.yaml | 751 +------ tests/cassettes/test_scanform_all.yaml | 53 +- tests/cassettes/test_scanform_create.yaml | 161 +- .../test_scanform_get_next_page.yaml | 53 +- tests/cassettes/test_scanform_retrieve.yaml | 193 +- tests/cassettes/test_shipment_all.yaml | 975 ++++----- tests/cassettes/test_shipment_buy.yaml | 328 ++- ...test_shipment_buy_with_end_shipper_id.yaml | 347 ++- .../test_shipment_convert_label.yaml | 503 +++-- tests/cassettes/test_shipment_create.yaml | 161 +- .../test_shipment_create_empty_objects.yaml | 157 +- .../test_shipment_create_tax_identifier.yaml | 157 +- .../test_shipment_create_with_ids.yaml | 217 +- .../test_shipment_generate_form.yaml | 274 ++- .../test_shipment_get_lowest_smart_rate.yaml | 236 +- .../test_shipment_get_next_page.yaml | 1888 ++++++---------- tests/cassettes/test_shipment_insure.yaml | 266 +-- .../cassettes/test_shipment_lowest_rate.yaml | 163 +- .../test_shipment_lowest_smart_rate.yaml | 396 ++-- .../test_shipment_recommend_ship_date.yaml | 775 +------ tests/cassettes/test_shipment_refund.yaml | 266 +-- .../test_shipment_regenerate_rates.yaml | 230 +- tests/cassettes/test_shipment_retrieve.yaml | 314 ++- tests/cassettes/test_shipment_smart_rate.yaml | 236 +- ...test_smartrate_estimate_delivery_date.yaml | 36 +- .../test_smartrate_recommend_ship_date.yaml | 56 +- tests/cassettes/test_tracker_all.yaml | 289 +-- tests/cassettes/test_tracker_create.yaml | 44 +- tests/cassettes/test_tracker_create_list.yaml | 14 +- .../cassettes/test_tracker_get_next_page.yaml | 602 ++--- tests/cassettes/test_tracker_retrieve.yaml | 91 +- tests/cassettes/test_unsubscribe_hooks.yaml | 22 +- tests/cassettes/test_user_all_children.yaml | 40 +- .../test_user_children_get_next_page.yaml | 115 +- tests/cassettes/test_user_create.yaml | 40 +- tests/cassettes/test_user_delete.yaml | 40 +- tests/cassettes/test_user_retrieve.yaml | 96 +- tests/cassettes/test_user_retrieve_me.yaml | 48 +- tests/cassettes/test_user_retrieve_no_id.yaml | 48 +- tests/cassettes/test_user_update.yaml | 84 +- tests/cassettes/test_user_update_brand.yaml | 73 +- tests/cassettes/test_webhook_all.yaml | 16 +- tests/cassettes/test_webhook_create.yaml | 36 +- tests/cassettes/test_webhook_delete.yaml | 36 +- tests/cassettes/test_webhook_retrieve.yaml | 58 +- tests/cassettes/test_webhook_update.yaml | 58 +- tests/conftest.py | 35 +- tests/test_beta_rate.py | 2 +- tests/test_beta_referral_customer.py | 2 +- tests/test_order.py | 4 +- tests/test_pickup.py | 2 +- tests/test_referral_customer.py | 5 +- tests/test_shipment.py | 2 +- tests/test_webhook.py | 9 +- 148 files changed, 10904 insertions(+), 12628 deletions(-) delete mode 100644 tests/cassettes/test_demo_hooks.yaml diff --git a/examples b/examples index bcfb3b90..0492e408 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit bcfb3b900550b99e9e4ded9acf4fbd35f1df349f +Subproject commit 0492e408e1b37b2ec18bcb4a4d228ab0f458f59d diff --git a/tests/cassettes/test_address_all.yaml b/tests/cassettes/test_address_all.yaml index 705c6607..ac9f5173 100644 --- a/tests/cassettes/test_address_all.yaml +++ b/tests/cassettes/test_address_all.yaml @@ -16,63 +16,53 @@ interactions: uri: https://api.easypost.com/v2/addresses?page_size=5 response: body: - string: '{"addresses": [{"id": "adr_78e6a91af0fb11ed8048ac1f6bc72124", "object": - "Address", "created_at": "2023-05-12T19:30:37+00:00", "updated_at": "2023-05-12T19:30:37+00:00", + string: '{"addresses": [{"id": "adr_cdba15145b3f11ef936dac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_7894a4b4f0fb11eda772ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-12T19:30:36+00:00", "updated_at": "2023-05-12T19:30:36+00:00", "name": + {}}, {"id": "adr_cd8fcb275b3f11ef9363ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, - "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_7857b92df0fb11eda67cac1f6bc7b362", - "object": "Address", "created_at": "2023-05-12T19:30:36+00:00", "updated_at": - "2023-05-12T19:30:36+00:00", "name": null, "company": "EASYPOST", "street1": - "417 MONTGOMERY ST FL 5", "street2": null, "city": "SAN FRANCISCO", "state": - "CA", "zip": "94104-1129", "country": "US", "phone": "", "email": - "", "mode": "test", "carrier_facility": null, "residential": false, - "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": - true, "errors": [{"code": "E.SECONDARY_INFORMATION.INVALID", "field": "street2", - "message": "Invalid secondary information(Apt/Suite#)", "suggestion": null}], - "details": null}, "delivery": {"success": true, "errors": [{"code": "E.SECONDARY_INFORMATION.INVALID", - "field": "street2", "message": "Invalid secondary information(Apt/Suite#)", - "suggestion": null}], "details": {"latitude": 37.79342, "longitude": -122.40288, - "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_7816dba5f0fb11eda574ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-12T19:30:36+00:00", "updated_at": - "2023-05-12T19:30:36+00:00", "name": "JACK SPARROW", "company": null, "street1": + "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_cd5f77af5b3f11efb4baac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": + "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": + "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", + "zip": "00001", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {"zip4": {"success": false, "errors": + [{"code": "E.ADDRESS.NOT_FOUND", "field": "address", "message": "Address not + found", "suggestion": null}], "details": null}, "delivery": {"success": false, + "errors": [{"code": "E.ADDRESS.NOT_FOUND", "field": "address", "message": + "Address not found", "suggestion": null}], "details": {}}}}, {"id": "adr_cd4cd5d85b3f11ef9344ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": + "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": + "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", + "zip": "00001", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, {"id": "adr_cd23a5615b3f11efa4bcac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": + "2024-08-15T19:51:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": - "America/Los_Angeles"}}}}, {"id": "adr_77d9ed8af0fb11eda485ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-12T19:30:35+00:00", "updated_at": - "2023-05-12T19:30:35+00:00", "name": null, "company": "EASYPOST", "street1": - "417 MONTGOMERY ST FL 5", "street2": null, "city": "SAN FRANCISCO", "state": - "CA", "zip": "94104-1129", "country": "US", "phone": "", "email": - "", "mode": "test", "carrier_facility": null, "residential": false, - "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": - true, "errors": [{"code": "E.SECONDARY_INFORMATION.INVALID", "field": "street2", - "message": "Invalid secondary information(Apt/Suite#)", "suggestion": null}], - "details": null}, "delivery": {"success": true, "errors": [{"code": "E.SECONDARY_INFORMATION.INVALID", - "field": "street2", "message": "Invalid secondary information(Apt/Suite#)", - "suggestion": null}], "details": {"latitude": 37.79342, "longitude": -122.40288, - "time_zone": "America/Los_Angeles"}}}}], "has_more": true}' + "America/Los_Angeles"}}}}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '3611' + - '2996' content-type: - application/json; charset=utf-8 - etag: - - W/"3c5fdbdd62b40380463e1deb9a6f306b" expires: - '0' pragma: @@ -90,20 +80,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b50645e93dde2cc316000061fc6 + - 62c1f5d866be5c52e7885da80016da29 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.054539' + - '0.039762' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create.yaml b/tests/cassettes/test_address_create.yaml index 7acca7fe..0fc11f7c 100644 --- a/tests/cassettes/test_address_create.yaml +++ b/tests/cassettes/test_address_create.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_779da35ef0fb11ed9ce1ac1f6bc7bdc6", "object": "Address", - "created_at": "2023-05-12T19:30:35+00:00", "updated_at": "2023-05-12T19:30:35+00:00", + string: '{"id": "adr_ccb994c35b3f11efa49cac1f6bc539ae", "object": "Address", + "created_at": "2024-08-15T19:51:44+00:00", "updated_at": "2024-08-15T19:51:44+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -36,12 +36,10 @@ interactions: - '461' content-type: - application/json; charset=utf-8 - etag: - - W/"35c6c397111b5387c8a3420bb0be9d41" expires: - '0' location: - - /api/v2/addresses/adr_779da35ef0fb11ed9ce1ac1f6bc7bdc6 + - /api/v2/addresses/adr_ccb994c35b3f11efa49cac1f6bc539ae pragma: - no-cache referrer-policy: @@ -57,21 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - fcd79951645e93dbe2cc315a00060bef + - 62c1f5dd66be5c50e7885da20016d855 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.038412' + - '0.044200' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_and_verify.yaml b/tests/cassettes/test_address_create_and_verify.yaml index 177a74ba..7032640a 100644 --- a/tests/cassettes/test_address_create_and_verify.yaml +++ b/tests/cassettes/test_address_create_and_verify.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses/create_and_verify response: body: - string: '{"address": {"id": "adr_7894a4b4f0fb11eda772ac1f6bc7b362", "object": - "Address", "created_at": "2023-05-12T19:30:36+00:00", "updated_at": "2023-05-12T19:30:36+00:00", + string: '{"address": {"id": "adr_cd8fcb275b3f11ef9363ac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -38,12 +38,10 @@ interactions: - '658' content-type: - application/json; charset=utf-8 - etag: - - W/"c0bdac5d259b74bea9ffeb93e754a9c0" expires: - '0' location: - - /api/v2/addresses/adr_7894a4b4f0fb11eda772ac1f6bc7b362 + - /api/v2/addresses/adr_cd8fcb275b3f11ef9363ac1f6bc53342 pragma: - no-cache referrer-policy: @@ -59,21 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - fe8d870d645e93dce2cc315e0005fc65 + - 62c1f5d866be5c52e7885da60016d98e x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb4wdc 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.051215' + - '0.061653' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_verify.yaml b/tests/cassettes/test_address_create_verify.yaml index bad74135..5b7c98af 100644 --- a/tests/cassettes/test_address_create_verify.yaml +++ b/tests/cassettes/test_address_create_verify.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_ea66c2b8ae6011eea245ac1f6bc539aa", "object": "Address", - "created_at": "2024-01-08T20:02:56+00:00", "updated_at": "2024-01-08T20:02:56+00:00", + string: '{"id": "adr_cce4bfd75b3f11efb492ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -39,7 +39,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_ea66c2b8ae6011eea245ac1f6bc539aa + - /api/v2/addresses/adr_cce4bfd75b3f11efb492ac1f6bc539aa pragma: - no-cache referrer-policy: @@ -55,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - d1c48c8d659c54f0f407ad050017a730 + - 62c1f5dd66be5c51e7885da30016d89d x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq ab82b2e6e9 - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.044245' + - '0.038457' x-version-label: - - easypost-202401051829-4cf193bd35-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -97,8 +97,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_ea76e82dae6011ee9a77ac1f6bc53342", "object": "Address", - "created_at": "2024-01-08T20:02:56+00:00", "updated_at": "2024-01-08T20:02:56+00:00", + string: '{"id": "adr_ccf83e735b3f11ef932bac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -118,7 +118,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_ea76e82dae6011ee9a77ac1f6bc53342 + - /api/v2/addresses/adr_ccf83e735b3f11ef932bac1f6bc53342 pragma: - no-cache referrer-policy: @@ -136,20 +136,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - d1c48c8d659c54f0f407ad050017a743 + - 62c1f5dd66be5c51e7885da30016d8b7 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq ab82b2e6e9 - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.069068' + - '0.051776' x-version-label: - - easypost-202401051829-4cf193bd35-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_verify_array.yaml b/tests/cassettes/test_address_create_verify_array.yaml index 8882e8f9..8e6ff7ba 100644 --- a/tests/cassettes/test_address_create_verify_array.yaml +++ b/tests/cassettes/test_address_create_verify_array.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_ae007a96ae6011ee9704ac1f6bc539ae", "object": "Address", - "created_at": "2024-01-08T20:01:15+00:00", "updated_at": "2024-01-08T20:01:15+00:00", + string: '{"id": "adr_cd4cd5d85b3f11ef9344ac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -39,7 +39,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_ae007a96ae6011ee9704ac1f6bc539ae + - /api/v2/addresses/adr_cd4cd5d85b3f11ef9344ac1f6bc53342 pragma: - no-cache referrer-policy: @@ -55,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - d1c48c8c659c548bf022053300173795 + - 62c1f5da66be5c51e7885da50016d926 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq ab82b2e6e9 - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.036879' + - '0.034182' x-version-label: - - easypost-202401051829-4cf193bd35-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -97,8 +97,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_ae0ec8bbae6011eebd28ac1f6bc539aa", "object": "Address", - "created_at": "2024-01-08T20:01:15+00:00", "updated_at": "2024-01-08T20:01:15+00:00", + string: '{"id": "adr_cd5f77af5b3f11efb4baac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -118,7 +118,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_ae0ec8bbae6011eebd28ac1f6bc539aa + - /api/v2/addresses/adr_cd5f77af5b3f11efb4baac1f6bc539aa pragma: - no-cache referrer-policy: @@ -134,7 +134,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - d1c48c8c659c548bf0220533001737a6 + - 62c1f5da66be5c51e7885da50016d93b x-frame-options: - SAMEORIGIN x-node: @@ -142,12 +142,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq ab82b2e6e9 - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.055866' + - '0.068775' x-version-label: - - easypost-202401051829-4cf193bd35-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_verify_strict.yaml b/tests/cassettes/test_address_create_verify_strict.yaml index e304cfb7..bf6e836a 100644 --- a/tests/cassettes/test_address_create_verify_strict.yaml +++ b/tests/cassettes/test_address_create_verify_strict.yaml @@ -23,8 +23,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_7816dba5f0fb11eda574ac1f6bc7b362", "object": "Address", - "created_at": "2023-05-12T19:30:36+00:00", "updated_at": "2023-05-12T19:30:36+00:00", + string: '{"id": "adr_cd23a5615b3f11efa4bcac1f6bc539ae", "object": "Address", + "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -39,12 +39,10 @@ interactions: - '646' content-type: - application/json; charset=utf-8 - etag: - - W/"40e2ef0b233432aefa439b0ba385fa29" expires: - '0' location: - - /api/v2/addresses/adr_7816dba5f0fb11eda574ac1f6bc7b362 + - /api/v2/addresses/adr_cd23a5615b3f11efa4bcac1f6bc539ae pragma: - no-cache referrer-policy: @@ -60,21 +58,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - fcd79957645e93dbe2cc315c00060c40 + - 62c1f5db66be5c51e7885da40016d8eb x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.077775' + - '0.076057' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_get_next_page.yaml b/tests/cassettes/test_address_get_next_page.yaml index 57b0b0f7..b00dad44 100644 --- a/tests/cassettes/test_address_get_next_page.yaml +++ b/tests/cassettes/test_address_get_next_page.yaml @@ -16,63 +16,53 @@ interactions: uri: https://api.easypost.com/v2/addresses?page_size=5 response: body: - string: '{"addresses": [{"id": "adr_78e6a91af0fb11ed8048ac1f6bc72124", "object": - "Address", "created_at": "2023-05-12T19:30:37+00:00", "updated_at": "2023-05-12T19:30:37+00:00", + string: '{"addresses": [{"id": "adr_cdba15145b3f11ef936dac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_7894a4b4f0fb11eda772ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-12T19:30:36+00:00", "updated_at": "2023-05-12T19:30:36+00:00", "name": + {}}, {"id": "adr_cd8fcb275b3f11ef9363ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, - "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_7857b92df0fb11eda67cac1f6bc7b362", - "object": "Address", "created_at": "2023-05-12T19:30:36+00:00", "updated_at": - "2023-05-12T19:30:36+00:00", "name": null, "company": "EASYPOST", "street1": - "417 MONTGOMERY ST FL 5", "street2": null, "city": "SAN FRANCISCO", "state": - "CA", "zip": "94104-1129", "country": "US", "phone": "", "email": - "", "mode": "test", "carrier_facility": null, "residential": false, - "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": - true, "errors": [{"code": "E.SECONDARY_INFORMATION.INVALID", "field": "street2", - "message": "Invalid secondary information(Apt/Suite#)", "suggestion": null}], - "details": null}, "delivery": {"success": true, "errors": [{"code": "E.SECONDARY_INFORMATION.INVALID", - "field": "street2", "message": "Invalid secondary information(Apt/Suite#)", - "suggestion": null}], "details": {"latitude": 37.79342, "longitude": -122.40288, - "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_7816dba5f0fb11eda574ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-12T19:30:36+00:00", "updated_at": - "2023-05-12T19:30:36+00:00", "name": "JACK SPARROW", "company": null, "street1": + "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_cd5f77af5b3f11efb4baac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": + "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": + "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", + "zip": "00001", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {"zip4": {"success": false, "errors": + [{"code": "E.ADDRESS.NOT_FOUND", "field": "address", "message": "Address not + found", "suggestion": null}], "details": null}, "delivery": {"success": false, + "errors": [{"code": "E.ADDRESS.NOT_FOUND", "field": "address", "message": + "Address not found", "suggestion": null}], "details": {}}}}, {"id": "adr_cd4cd5d85b3f11ef9344ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": + "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": + "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", + "zip": "00001", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, {"id": "adr_cd23a5615b3f11efa4bcac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": + "2024-08-15T19:51:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": - "America/Los_Angeles"}}}}, {"id": "adr_77d9ed8af0fb11eda485ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-12T19:30:35+00:00", "updated_at": - "2023-05-12T19:30:35+00:00", "name": null, "company": "EASYPOST", "street1": - "417 MONTGOMERY ST FL 5", "street2": null, "city": "SAN FRANCISCO", "state": - "CA", "zip": "94104-1129", "country": "US", "phone": "", "email": - "", "mode": "test", "carrier_facility": null, "residential": false, - "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": - true, "errors": [{"code": "E.SECONDARY_INFORMATION.INVALID", "field": "street2", - "message": "Invalid secondary information(Apt/Suite#)", "suggestion": null}], - "details": null}, "delivery": {"success": true, "errors": [{"code": "E.SECONDARY_INFORMATION.INVALID", - "field": "street2", "message": "Invalid secondary information(Apt/Suite#)", - "suggestion": null}], "details": {"latitude": 37.79342, "longitude": -122.40288, - "time_zone": "America/Los_Angeles"}}}}], "has_more": true}' + "America/Los_Angeles"}}}}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '3611' + - '2996' content-type: - application/json; charset=utf-8 - etag: - - W/"3c5fdbdd62b40380463e1deb9a6f306b" expires: - '0' pragma: @@ -90,20 +80,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b51645e93dee2cc316100061fd2 + - 62c1f5d966be5c53e7885dc00016da5b x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.033317' + - '0.036892' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -123,49 +113,54 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/addresses?before_id=adr_77d9ed8af0fb11eda485ac1f6bc7b362&page_size=5 + uri: https://api.easypost.com/v2/addresses?before_id=adr_cd23a5615b3f11efa4bcac1f6bc539ae&page_size=5 response: body: - string: '{"addresses": [{"id": "adr_779da35ef0fb11ed9ce1ac1f6bc7bdc6", "object": - "Address", "created_at": "2023-05-12T19:30:35+00:00", "updated_at": "2023-05-12T19:30:35+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_301dd00ae45711edb6c9ac1f6bc7b362", "object": "Address", "created_at": - "2023-04-26T17:24:23+00:00", "updated_at": "2023-04-26T17:24:23+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + string: '{"addresses": [{"id": "adr_ccf83e735b3f11ef932bac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", + "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": + null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_301b2d5be45711ed9d33ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-04-26T17:24:23+00:00", "updated_at": "2023-04-26T17:24:23+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + {"zip4": {"success": false, "errors": [{"code": "E.ADDRESS.NOT_FOUND", "field": + "address", "message": "Address not found", "suggestion": null}], "details": + null}, "delivery": {"success": false, "errors": [{"code": "E.ADDRESS.NOT_FOUND", + "field": "address", "message": "Address not found", "suggestion": null}], + "details": {}}}}, {"id": "adr_cce4bfd75b3f11efb492ac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", + "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": + null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_19946d04e45711edbedbac1f6b0a0d1e", "object": "Address", "created_at": - "2023-04-26T17:23:46+00:00", "updated_at": "2023-04-26T17:23:46+00:00", "name": + {}}, {"id": "adr_ccb994c35b3f11efa49cac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:51:44+00:00", "updated_at": "2024-08-15T19:51:44+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_1991858ae45711eda335ac1f6bc7b362", "object": "Address", "created_at": - "2023-04-26T17:23:46+00:00", "updated_at": "2023-04-26T17:23:46+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": + {}}, {"id": "adr_c59928c24ad411efbbdfac1f6bc53342", "object": "Address", "created_at": + "2024-07-25T22:25:18+00:00", "updated_at": "2024-07-25T22:25:18+00:00", "name": + "EasyPost", "company": null, "street1": "417 Montgomery Street", "street2": + "5th Floor", "city": "San Francisco", "state": "CA", "zip": "94104", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}], "has_more": true}' + {}}, {"id": "adr_c5968bd74ad411efbbddac1f6bc53342", "object": "Address", "created_at": + "2024-07-25T22:25:18+00:00", "updated_at": "2024-07-25T22:26:11+00:00", "name": + "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "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"}}}}], "has_more": + true}' headers: cache-control: - private, no-cache, no-store content-length: - - '2337' + - '2822' content-type: - application/json; charset=utf-8 - etag: - - W/"24187a6346a5cc313c97db39a6a953ae" expires: - '0' pragma: @@ -183,20 +178,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b51645e93dee2cc316100061fd7 + - 62c1f5d966be5c53e7885dc00016da7a x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '4.955250' + - '0.060739' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_retrieve.yaml b/tests/cassettes/test_address_retrieve.yaml index f6db3cac..45fa0fe5 100644 --- a/tests/cassettes/test_address_retrieve.yaml +++ b/tests/cassettes/test_address_retrieve.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_78e6a91af0fb11ed8048ac1f6bc72124", "object": "Address", - "created_at": "2023-05-12T19:30:37+00:00", "updated_at": "2023-05-12T19:30:37+00:00", + string: '{"id": "adr_cdba15145b3f11ef936dac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -36,12 +36,10 @@ interactions: - '461' content-type: - application/json; charset=utf-8 - etag: - - W/"73a77bd69e7f84c0bc1d235ca7bed363" expires: - '0' location: - - /api/v2/addresses/adr_78e6a91af0fb11ed8048ac1f6bc72124 + - /api/v2/addresses/adr_cdba15145b3f11ef936dac1f6bc53342 pragma: - no-cache referrer-policy: @@ -57,21 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - fe8d870b645e93dde2cc315f0005fca8 + - 62c1f5db66be5c52e7885da70016d9cc x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb4wdc 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.033244' + - '0.040570' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -91,11 +88,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/addresses/adr_78e6a91af0fb11ed8048ac1f6bc72124 + uri: https://api.easypost.com/v2/addresses/adr_cdba15145b3f11ef936dac1f6bc53342 response: body: - string: '{"id": "adr_78e6a91af0fb11ed8048ac1f6bc72124", "object": "Address", - "created_at": "2023-05-12T19:30:37+00:00", "updated_at": "2023-05-12T19:30:37+00:00", + string: '{"id": "adr_cdba15145b3f11ef936dac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -108,8 +105,6 @@ interactions: - '461' content-type: - application/json; charset=utf-8 - etag: - - W/"73a77bd69e7f84c0bc1d235ca7bed363" expires: - '0' pragma: @@ -127,21 +122,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - fe8d870b645e93dde2cc315f0005fcbd + - 62c1f5db66be5c52e7885da70016d9ec x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb4wdc 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.024342' + - '0.038448' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_verify.yaml b/tests/cassettes/test_address_verify.yaml index 6c65a14b..33c35dee 100644 --- a/tests/cassettes/test_address_verify.yaml +++ b/tests/cassettes/test_address_verify.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_7c5de6e9f0fb11eda8d9ac1f6bc7bdc6", "object": "Address", - "created_at": "2023-05-12T19:30:43+00:00", "updated_at": "2023-05-12T19:30:43+00:00", + string: '{"id": "adr_ce5993385b3f11ef83673cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:51:47+00:00", "updated_at": "2024-08-15T19:51:47+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -36,12 +36,10 @@ interactions: - '461' content-type: - application/json; charset=utf-8 - etag: - - W/"044c35dcbccc26be7ff50080c2ea6864" expires: - '0' location: - - /api/v2/addresses/adr_7c5de6e9f0fb11eda8d9ac1f6bc7bdc6 + - /api/v2/addresses/adr_ce5993385b3f11ef83673cecef1b359e pragma: - no-cache referrer-policy: @@ -57,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00c645e93e3e2cc31790005d41e + - 62c1f5dd66be5c53e7885dc10016dab8 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.047591' + - '0.048450' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -90,11 +88,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/addresses/adr_7c5de6e9f0fb11eda8d9ac1f6bc7bdc6/verify + uri: https://api.easypost.com/v2/addresses/adr_ce5993385b3f11ef83673cecef1b359e/verify response: body: - string: '{"address": {"id": "adr_7c71d8d3f0fb11edb623ac1f6bc7b362", "object": - "Address", "created_at": "2023-05-12T19:30:43+00:00", "updated_at": "2023-05-12T19:30:43+00:00", + string: '{"address": {"id": "adr_ce6f49295b3f11ef83713cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:51:47+00:00", "updated_at": "2024-08-15T19:51:47+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -109,12 +107,10 @@ interactions: - '658' content-type: - application/json; charset=utf-8 - etag: - - W/"fe16dfde6b818167414d10465e2a862d" expires: - '0' location: - - /api/v2/addresses/adr_7c71d8d3f0fb11edb623ac1f6bc7b362 + - /api/v2/addresses/adr_ce6f49295b3f11ef83713cecef1b359e pragma: - no-cache referrer-policy: @@ -125,25 +121,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00c645e93e3e2cc31790005d42b + - 62c1f5dd66be5c53e7885dc10016dad2 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.054298' + - '0.067688' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_verify_invalid_address.yaml b/tests/cassettes/test_address_verify_invalid_address.yaml index eaaec6b7..a61981b5 100644 --- a/tests/cassettes/test_address_verify_invalid_address.yaml +++ b/tests/cassettes/test_address_verify_invalid_address.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_7c8d2199f0fb11ed8e31ac1f6bc72124", "object": "Address", - "created_at": "2023-05-12T19:30:43+00:00", "updated_at": "2023-05-12T19:30:43+00:00", + string: '{"id": "adr_ce9728675b3f11efb53aac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:51:47+00:00", "updated_at": "2024-08-15T19:51:47+00:00", "name": null, "company": null, "street1": "invalid", "street2": null, "city": null, "state": null, "zip": null, "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": @@ -33,12 +33,10 @@ interactions: - '403' content-type: - application/json; charset=utf-8 - etag: - - W/"ba83aca1454e0558f215c3d63669f85c" expires: - '0' location: - - /api/v2/addresses/adr_7c8d2199f0fb11ed8e31ac1f6bc72124 + - /api/v2/addresses/adr_ce9728675b3f11efb53aac1f6bc539aa pragma: - no-cache referrer-policy: @@ -54,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00e645e93e3e2cc317b0005d43b + - 62c1f5d766be5c53e7885dc20016db18 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.034440' + - '0.041345' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -87,7 +85,7 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/addresses/adr_7c8d2199f0fb11ed8e31ac1f6bc72124/verify + uri: https://api.easypost.com/v2/addresses/adr_ce9728675b3f11efb53aac1f6bc539aa/verify response: body: string: '{"error": {"code": "ADDRESS.VERIFY.FAILURE", "message": "Unable to @@ -118,20 +116,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00e645e93e3e2cc317b0005d449 + - 62c1f5d766be5c53e7885dc20016db34 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.032914' + - '0.039869' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_all_api_keys.yaml b/tests/cassettes/test_all_api_keys.yaml index 1752353b..da7e143e 100644 --- a/tests/cassettes/test_all_api_keys.yaml +++ b/tests/cassettes/test_all_api_keys.yaml @@ -21,16 +21,37 @@ interactions: "2022-02-24T20:59:05Z", "id": "ak_16f993eae7984eab94e0957a78bee407"}, {"object": "ApiKey", "active": true, "key": "", "mode": "production", "created_at": "2022-02-24T20:59:14Z", "id": "ak_62524a9c3f684f65ab9eccbf70950df8"}], "children": - []}' + [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", "keys": [{"object": "ApiKey", + "active": true, "key": "", "mode": "test", "created_at": "2023-12-11T17:13:38Z", + "id": "ak_90e045d452174b3e99198138dc7938f5"}, {"object": "ApiKey", "active": + true, "key": "", "mode": "production", "created_at": "2023-12-11T17:13:38Z", + "id": "ak_7ef472842fda4256b72779e74653ca79"}], "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", + "keys": [{"object": "ApiKey", "active": true, "key": "", "mode": + "test", "created_at": "2023-12-11T17:13:43Z", "id": "ak_726be943161e4028a347dd2389284d7d"}, + {"object": "ApiKey", "active": true, "key": "", "mode": "production", + "created_at": "2023-12-11T17:13:43Z", "id": "ak_dd9f2e1f14d342679191eee4b69b6ad0"}], + "children": []}, {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "keys": [{"object": + "ApiKey", "active": true, "key": "", "mode": "test", "created_at": + "2024-01-04T19:56:21Z", "id": "ak_e14b2c164b95497a8b9141b2ad212855"}, {"object": + "ApiKey", "active": true, "key": "", "mode": "production", "created_at": + "2024-01-04T19:56:21Z", "id": "ak_a35fabeaec96494694ec0c8726103a80"}], "children": + []}, {"id": "user_31754439d4524fbb8867d138de537e12", "keys": [{"object": "ApiKey", + "active": true, "key": "", "mode": "test", "created_at": "2024-01-19T21:42:21Z", + "id": "ak_dffa08301f7d4a54895f7840d54d05e0"}, {"object": "ApiKey", "active": + true, "key": "", "mode": "production", "created_at": "2024-01-19T21:42:21Z", + "id": "ak_d386ae3ceee04b0880002cd39dca2587"}], "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", + "keys": [{"object": "ApiKey", "active": true, "key": "", "mode": + "test", "created_at": "2024-01-19T21:44:18Z", "id": "ak_92d46dfa461245bba1ec48aac1f2090d"}, + {"object": "ApiKey", "active": true, "key": "", "mode": "production", + "created_at": "2024-01-19T21:44:18Z", "id": "ak_8637c80064224594b9dfdf82efbb27b7"}], + "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '463' + - '2782' content-type: - application/json; charset=utf-8 - etag: - - W/"93631940720c42f55c0b598f97083e11" expires: - '0' pragma: @@ -43,27 +64,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 44bce2e165147ecef3f87071000edcd6 + - 62c1f5db66be5c54e7885dc30016db76 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq cac2303bbb - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.030783' + - '0.119564' x-version-label: - - easypost-202309271719-1317a54bfa-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_authenticated_user_api_keys.yaml b/tests/cassettes/test_authenticated_user_api_keys.yaml index 741e0de3..eb06a4d3 100644 --- a/tests/cassettes/test_authenticated_user_api_keys.yaml +++ b/tests/cassettes/test_authenticated_user_api_keys.yaml @@ -23,16 +23,32 @@ interactions: "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": false, "cc_fee_rate": "0.03", "default_insurance_amount": null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": "1.00", "email": - "", "children": []}' + "", "children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User2", "phone_number": "8005550100", "verified": true, "created_at": + "2023-12-11T17:13:38Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "8005550100", "verified": true, "created_at": "2023-12-11T17:13:43Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}, + {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Child Account Name22", "phone_number": + "8005550100", "verified": true, "created_at": "2024-01-04T19:56:21Z", "default_carbon_offset": + false, "has_elevate_access": false, "children": []}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "8005550100", "verified": true, "created_at": + "2024-01-19T21:42:21Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "8005550100", "verified": true, "created_at": "2024-01-19T21:44:18Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '573' + - '2010' content-type: - application/json; charset=utf-8 - etag: - - W/"4d7e243262cf39546f0f5363c1c1e8e0" expires: - '0' pragma: @@ -50,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44bce2de65147ef6f40a7431000ef004 + - 62c1f5dc66be5c54e7885dc40016dbd6 x-frame-options: - SAMEORIGIN x-node: - - bigweb31nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq cac2303bbb - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.039260' + - '0.162949' x-version-label: - - easypost-202309271719-1317a54bfa-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -91,16 +107,37 @@ interactions: "2022-02-24T20:59:05Z", "id": "ak_16f993eae7984eab94e0957a78bee407"}, {"object": "ApiKey", "active": true, "key": "", "mode": "production", "created_at": "2022-02-24T20:59:14Z", "id": "ak_62524a9c3f684f65ab9eccbf70950df8"}], "children": - []}' + [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", "keys": [{"object": "ApiKey", + "active": true, "key": "", "mode": "test", "created_at": "2023-12-11T17:13:38Z", + "id": "ak_90e045d452174b3e99198138dc7938f5"}, {"object": "ApiKey", "active": + true, "key": "", "mode": "production", "created_at": "2023-12-11T17:13:38Z", + "id": "ak_7ef472842fda4256b72779e74653ca79"}], "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", + "keys": [{"object": "ApiKey", "active": true, "key": "", "mode": + "test", "created_at": "2023-12-11T17:13:43Z", "id": "ak_726be943161e4028a347dd2389284d7d"}, + {"object": "ApiKey", "active": true, "key": "", "mode": "production", + "created_at": "2023-12-11T17:13:43Z", "id": "ak_dd9f2e1f14d342679191eee4b69b6ad0"}], + "children": []}, {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "keys": [{"object": + "ApiKey", "active": true, "key": "", "mode": "test", "created_at": + "2024-01-04T19:56:21Z", "id": "ak_e14b2c164b95497a8b9141b2ad212855"}, {"object": + "ApiKey", "active": true, "key": "", "mode": "production", "created_at": + "2024-01-04T19:56:21Z", "id": "ak_a35fabeaec96494694ec0c8726103a80"}], "children": + []}, {"id": "user_31754439d4524fbb8867d138de537e12", "keys": [{"object": "ApiKey", + "active": true, "key": "", "mode": "test", "created_at": "2024-01-19T21:42:21Z", + "id": "ak_dffa08301f7d4a54895f7840d54d05e0"}, {"object": "ApiKey", "active": + true, "key": "", "mode": "production", "created_at": "2024-01-19T21:42:21Z", + "id": "ak_d386ae3ceee04b0880002cd39dca2587"}], "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", + "keys": [{"object": "ApiKey", "active": true, "key": "", "mode": + "test", "created_at": "2024-01-19T21:44:18Z", "id": "ak_92d46dfa461245bba1ec48aac1f2090d"}, + {"object": "ApiKey", "active": true, "key": "", "mode": "production", + "created_at": "2024-01-19T21:44:18Z", "id": "ak_8637c80064224594b9dfdf82efbb27b7"}], + "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '463' + - '2782' content-type: - application/json; charset=utf-8 - etag: - - W/"93631940720c42f55c0b598f97083e11" expires: - '0' pragma: @@ -118,20 +155,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44bce2de65147ef6f40a7431000ef010 + - 62c1f5dc66be5c54e7885dc40016dc20 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq cac2303bbb - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.026740' + - '0.083890' x-version-label: - - easypost-202309271719-1317a54bfa-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_add_remove_shipment.yaml b/tests/cassettes/test_batch_add_remove_shipment.yaml index d6a01138..b17e6ced 100644 --- a/tests/cassettes/test_batch_add_remove_shipment.yaml +++ b/tests/cassettes/test_batch_add_remove_shipment.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:03:01Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:52:07Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285862483", "updated_at": "2023-11-28T22:03:02Z", "batch_id": + "9400100105807075742114", "updated_at": "2024-08-15T19:52:08Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_e5cb8c0b8e3911ee82aeac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:03:01+00:00", "updated_at": "2023-11-28T22:03:01+00:00", "name": + {"id": "adr_da4514ed5b3f11ef89c63cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:07+00:00", "updated_at": "2024-08-15T19:52:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_63f070c6388441c4b01c3c1da0a745d9", - "object": "Parcel", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_8665a281929e486ebeb9c74de10f8474", + "object": "Parcel", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_86e568f700b9496a80bd642385a115ab", - "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:02Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_8d6519b58dbf439593f4bbd43045a954", + "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52:08Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:08Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e80812d2cab6b44946858845eda77e7a1c.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e82d40dff9993e4969bc0c36487fcbe485.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_a27773ee8059489d872853365b91b1ae", "object": - "Rate", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_24674f390e7d43af8dd8e62ff6793688", - "object": "Rate", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_d5fd664315504194a6837694698e6752", "object": + "Rate", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_10bd13e7770b4160a81718f52d75592a", + "object": "Rate", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", + "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_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fa047dd2d82142cfa50cacc6b68c1433", - "object": "Rate", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", + 2, "shipment_id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_472e4a8870764eee818b35cf41646223", + "object": "Rate", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e0d2c38dcfb74bd289337224d75b2c6e", - "object": "Rate", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e46f3ef120bc4ca49623df4f85f43a97", "object": "Rate", "created_at": - "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_e0d2c38dcfb74bd289337224d75b2c6e", - "object": "Rate", "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_129804c22dff4b169421954d207647a9", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285862483", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:03:02Z", "updated_at": - "2023-11-28T22:03:02Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier": "USPS", + 3, "shipment_id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_472e4a8870764eee818b35cf41646223", "object": + "Rate", "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52: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_ee945f94de8e409bb1aa5047ba4362b7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_3527128107a849f295312537db57b508", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742114", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:08Z", + "updated_at": "2024-08-15T19:52:08Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzEyOTgwNGMyMmRmZjRiMTY5NDIxOTU0ZDIwNzY0N2E5"}, - "to_address": {"id": "adr_e5c835918e3911ee8665ac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T22:03:01+00:00", "updated_at": "2023-11-28T22:03:01+00:00", + "https://track.easypost.com/djE6dHJrXzM1MjcxMjgxMDdhODQ5ZjI5NTMxMjUzN2RiNTdiNTA4"}, + "to_address": {"id": "adr_da426bb15b3f11ef89c33cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:52:07+00:00", "updated_at": "2024-08-15T19:52:07+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_e5cb8c0b8e3911ee82aeac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T22:03:01+00:00", "updated_at": - "2023-11-28T22:03:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_da4514ed5b3f11ef89c63cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:52:07+00:00", "updated_at": + "2024-08-15T19:52:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_e5c835918e3911ee8665ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:03:01+00:00", "updated_at": "2023-11-28T22:03:01+00:00", "name": + "adr_da426bb15b3f11ef89c33cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:07+00:00", "updated_at": "2024-08-15T19:52:07+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_4d6dfe4ee73e4ad186981f843799897e", "object": + "refunded": false}], "id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_4d6dfe4ee73e4ad186981f843799897e + - /api/v2/shipments/shp_ee945f94de8e409bb1aa5047ba4362b7 pragma: - no-cache referrer-policy: @@ -151,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b765666395e78a9786003e6858 + - 62c1f5dc66be5c67e7885de30016ef23 x-frame-options: - SAMEORIGIN x-node: - - bigweb31nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.981107' + - '0.955729' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -191,9 +178,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_03abf3335a2648728a9698f886321587", "object": "Batch", + string: '{"id": "batch_65930b77e40b421c840ef7898d342583", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 0, "reference": null, - "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", + "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52:08Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -221,7 +208,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b765666396e78a9786003e69e3 + - 62c1f5dc66be5c68e7885de30016f01e x-frame-options: - SAMEORIGIN x-node: @@ -229,19 +216,19 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.035028' + - '0.036061' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"shipments": [{"id": "shp_4d6dfe4ee73e4ad186981f843799897e"}]}' + body: '{"shipments": [{"id": "shp_ee945f94de8e409bb1aa5047ba4362b7"}]}' headers: Accept: - '*/*' @@ -258,15 +245,15 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_03abf3335a2648728a9698f886321587/add_shipments + uri: https://api.easypost.com/v2/batches/batch_65930b77e40b421c840ef7898d342583/add_shipments response: body: - string: '{"id": "batch_03abf3335a2648728a9698f886321587", "object": "Batch", + string: '{"id": "batch_65930b77e40b421c840ef7898d342583", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": null, - "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", + "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52:08Z", "scan_form": null, "shipments": [{"batch_status": "postage_purchased", "batch_message": - null, "reference": null, "tracking_code": "9400100105442285862483", "id": - "shp_4d6dfe4ee73e4ad186981f843799897e"}], "status": {"created": 0, "queued_for_purchase": + null, "reference": null, "tracking_code": "9400100105807075742114", "id": + "shp_ee945f94de8e409bb1aa5047ba4362b7"}], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 1, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -288,32 +275,34 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b765666396e78a9786003e6a1e + - 62c1f5dc66be5c68e7885de30016f03d x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.069987' + - '0.061301' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"shipments": [{"id": "shp_4d6dfe4ee73e4ad186981f843799897e"}]}' + body: '{"shipments": [{"id": "shp_ee945f94de8e409bb1aa5047ba4362b7"}]}' headers: Accept: - '*/*' @@ -330,12 +319,12 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_03abf3335a2648728a9698f886321587/remove_shipments + uri: https://api.easypost.com/v2/batches/batch_65930b77e40b421c840ef7898d342583/remove_shipments response: body: - string: '{"id": "batch_03abf3335a2648728a9698f886321587", "object": "Batch", + string: '{"id": "batch_65930b77e40b421c840ef7898d342583", "object": "Batch", "mode": "test", "state": "purchased", "num_shipments": 0, "reference": null, - "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", + "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52:08Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -358,27 +347,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b765666396e78a9786003e6a5d + - 62c1f5dc66be5c68e7885de30016f061 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.045995' + - '0.048042' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_all.yaml b/tests/cassettes/test_batch_all.yaml index 3145720f..520642f8 100644 --- a/tests/cassettes/test_batch_all.yaml +++ b/tests/cassettes/test_batch_all.yaml @@ -16,18 +16,18 @@ interactions: uri: https://api.easypost.com/v2/batches?page_size=5 response: body: - string: '{"batches": [{"id": "batch_5c5da8c23c3c48549a381da43d7ef9f9", "object": + string: '{"batches": [{"id": "batch_9625876b0898464d836e558515b16740", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": - null, "created_at": "2023-05-12T19:30:43Z", "updated_at": "2023-05-12T19:30:43Z", + null, "created_at": "2024-08-15T19:51:50Z", "updated_at": "2024-08-15T19:51:50Z", "scan_form": null, "shipments": [{"batch_status": "created", "batch_message": - null, "reference": null, "tracking_code": null, "id": "shp_be5a45be490a4ecfb4b6bf89b5d97efa"}], + null, "reference": null, "tracking_code": null, "id": "shp_91ac92eaf06f41b4b2132204da2eb503"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}, {"id": - "batch_78252d9d1e6046b5953baf4f54832904", "object": "Batch", "mode": "test", - "state": "created", "num_shipments": 1, "reference": null, "created_at": "2023-05-12T19:30:43Z", - "updated_at": "2023-05-12T19:30:44Z", "scan_form": null, "shipments": [{"batch_status": + "batch_32691a0c325b45238d1db58966e2278d", "object": "Batch", "mode": "test", + "state": "created", "num_shipments": 1, "reference": null, "created_at": "2024-08-15T19:51:50Z", + "updated_at": "2024-08-15T19:51:50Z", "scan_form": null, "shipments": [{"batch_status": "created", "batch_message": null, "reference": null, "tracking_code": null, - "id": "shp_06fd2424f27244cd9d9085bc73110767"}], "status": {"created": 1, "queued_for_purchase": + "id": "shp_2b8babfdb1db4aa0b1a317b07dc7a75b"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}], "has_more": false}' headers: @@ -37,8 +37,6 @@ interactions: - '1056' content-type: - application/json; charset=utf-8 - etag: - - W/"5387c1f56a6184a4fdf9febc72dd3ad0" expires: - '0' pragma: @@ -51,27 +49,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 52975b53645e93e4e2cc317e000622b3 + - 62c1f5d966be5c56e7885dc80016de68 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.125052' + - '0.162436' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_buy.yaml b/tests/cassettes/test_batch_buy.yaml index 12b7ef6f..bef167c0 100644 --- a/tests/cassettes/test_batch_buy.yaml +++ b/tests/cassettes/test_batch_buy.yaml @@ -6,7 +6,7 @@ interactions: "from_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}]}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '610' + - '620' Content-Type: - application/json authorization: @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_2240b6c1bc1c49b3a4b2badbb8e9e9e7", "object": "Batch", + string: '{"id": "batch_2444a8b73c5c4c029a866026e9fc572f", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:31:50Z", "updated_at": "2023-05-12T19:31:50Z", + "created_at": "2024-08-15T19:51:51Z", "updated_at": "2024-08-15T19:51:51Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -40,8 +40,6 @@ interactions: - '384' content-type: - application/json; charset=utf-8 - etag: - - W/"ab7b3bf2969bc24189e0a36747555ce1" expires: - '0' pragma: @@ -59,20 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b4f645e9426e2cc34b700063a1f + - 62c1f5d866be5c57e7885dc90016dee9 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.073478' + - '0.044247' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -96,14 +94,14 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_2240b6c1bc1c49b3a4b2badbb8e9e9e7/buy + uri: https://api.easypost.com/v2/batches/batch_2444a8b73c5c4c029a866026e9fc572f/buy response: body: - string: '{"id": "batch_2240b6c1bc1c49b3a4b2badbb8e9e9e7", "object": "Batch", + string: '{"id": "batch_2444a8b73c5c4c029a866026e9fc572f", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:31:50Z", "updated_at": "2023-05-12T19:31:50Z", + "created_at": "2024-08-15T19:51:51Z", "updated_at": "2024-08-15T19:51:51Z", "scan_form": null, "shipments": [{"batch_status": "queued_for_purchase", "batch_message": - null, "reference": null, "tracking_code": null, "id": "shp_b4d8d4d339f64628b8f5adc4cd8513b9"}], + null, "reference": null, "tracking_code": null, "id": "shp_41845d2896cf40748c634c22f09cc99a"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -113,8 +111,6 @@ interactions: - '524' content-type: - application/json; charset=utf-8 - etag: - - W/"5d868683ed7a0625d8eeb48f4756c45f" expires: - '0' pragma: @@ -132,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b4f645e942be2cc34b700063c6d + - 62c1f5d866be5c5ce7885dc90016e3ac x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.055698' + - '0.052116' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_create.yaml b/tests/cassettes/test_batch_create.yaml index 8d9a59f9..a78b40d7 100644 --- a/tests/cassettes/test_batch_create.yaml +++ b/tests/cassettes/test_batch_create.yaml @@ -6,7 +6,7 @@ interactions: "from_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}]}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '610' + - '620' Content-Type: - application/json authorization: @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_5c5da8c23c3c48549a381da43d7ef9f9", "object": "Batch", + string: '{"id": "batch_9625876b0898464d836e558515b16740", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:30:43Z", "updated_at": "2023-05-12T19:30:43Z", + "created_at": "2024-08-15T19:51:50Z", "updated_at": "2024-08-15T19:51:50Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -40,8 +40,6 @@ interactions: - '384' content-type: - application/json; charset=utf-8 - etag: - - W/"e524acc3c8f610239b800f5ddb62d104" expires: - '0' pragma: @@ -54,27 +52,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00c645e93e3e2cc317c0005d45c + - 62c1f5d966be5c56e7885dc60016dda8 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.039433' + - '0.049022' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_create_scanform.yaml b/tests/cassettes/test_batch_create_scanform.yaml index 0af3ed35..6b87b3d9 100644 --- a/tests/cassettes/test_batch_create_scanform.yaml +++ b/tests/cassettes/test_batch_create_scanform.yaml @@ -6,7 +6,7 @@ interactions: "from_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}]}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '610' + - '620' Content-Type: - application/json authorization: @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_93bbd242fffd456899d0874728667ca6", "object": "Batch", + string: '{"id": "batch_180b18530ca245ab824169b73b26ae6f", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:37:43Z", "updated_at": "2023-05-12T19:37:43Z", + "created_at": "2024-08-15T19:51:56Z", "updated_at": "2024-08-15T19:51:56Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -40,8 +40,6 @@ interactions: - '384' content-type: - application/json; charset=utf-8 - etag: - - W/"93ab1778229106e6edb4001de85fa9da" expires: - '0' pragma: @@ -59,21 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - fe8d870e645e9587e2cc393e0006837f + - 62c1f5d866be5c5ce7885de20016e3f8 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb4wdc 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.059158' + - '0.046928' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -97,14 +94,14 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_93bbd242fffd456899d0874728667ca6/buy + uri: https://api.easypost.com/v2/batches/batch_180b18530ca245ab824169b73b26ae6f/buy response: body: - string: '{"id": "batch_93bbd242fffd456899d0874728667ca6", "object": "Batch", + string: '{"id": "batch_180b18530ca245ab824169b73b26ae6f", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:37:43Z", "updated_at": "2023-05-12T19:37:43Z", + "created_at": "2024-08-15T19:51:56Z", "updated_at": "2024-08-15T19:51:56Z", "scan_form": null, "shipments": [{"batch_status": "queued_for_purchase", "batch_message": - null, "reference": null, "tracking_code": null, "id": "shp_f7c53eb6f8c448b484c47ebfdcdfb3d6"}], + null, "reference": null, "tracking_code": null, "id": "shp_7b5d36f7235a42e99bdb23f099fd2aa6"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -114,8 +111,6 @@ interactions: - '524' content-type: - application/json; charset=utf-8 - etag: - - W/"cb99d8099e24e4837641bdca715153d8" expires: - '0' pragma: @@ -133,21 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - fe8d870e645e958ce2cc393e000684e0 + - 62c1f5d866be5c61e7885de20016e929 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb4wdc 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.052865' + - '0.056810' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -171,19 +165,19 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_93bbd242fffd456899d0874728667ca6/scan_form + uri: https://api.easypost.com/v2/batches/batch_180b18530ca245ab824169b73b26ae6f/scan_form response: body: - string: '{"id": "batch_93bbd242fffd456899d0874728667ca6", "object": "Batch", + string: '{"id": "batch_180b18530ca245ab824169b73b26ae6f", "object": "Batch", "mode": "test", "state": "purchased", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:37:43Z", "updated_at": "2023-05-12T19:37:53Z", - "scan_form": {"id": "sf_e797f779358a41eeacdf12f050f4f736", "object": "ScanForm", - "created_at": "2023-05-12T19:37:53Z", "updated_at": "2023-05-12T19:37:53Z", + "created_at": "2024-08-15T19:51:56Z", "updated_at": "2024-08-15T19:52:07Z", + "scan_form": {"id": "sf_096c54c7ff404b06b6bab4b1087f3f52", "object": "ScanForm", + "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", "tracking_codes": [], "address": null, "status": "creating", "message": null, - "form_url": null, "form_file_type": null, "batch_id": "batch_93bbd242fffd456899d0874728667ca6", + "form_url": null, "form_file_type": null, "batch_id": "batch_180b18530ca245ab824169b73b26ae6f", "confirmation": null}, "shipments": [{"batch_status": "postage_purchased", - "batch_message": null, "reference": null, "tracking_code": "9400100104262209121370", - "id": "shp_f7c53eb6f8c448b484c47ebfdcdfb3d6"}], "status": {"created": 0, "queued_for_purchase": + "batch_message": null, "reference": null, "tracking_code": "9400100105807075742053", + "id": "shp_7b5d36f7235a42e99bdb23f099fd2aa6"}], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 1, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -193,8 +187,6 @@ interactions: - '856' content-type: - application/json; charset=utf-8 - etag: - - W/"016680b864fb54065c262c532515103f" expires: - '0' pragma: @@ -212,21 +204,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - fe8d870e645e9591e2cc393e00068649 + - 62c1f5d866be5c67e7885de20016eebc x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb4wdc 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.060973' + - '0.102529' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_label.yaml b/tests/cassettes/test_batch_label.yaml index 6b920e8d..2e1d67cd 100644 --- a/tests/cassettes/test_batch_label.yaml +++ b/tests/cassettes/test_batch_label.yaml @@ -6,7 +6,7 @@ interactions: "from_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}]}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '610' + - '620' Content-Type: - application/json authorization: @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_7517f8f307b6418d82f298a8acb8856e", "object": "Batch", + string: '{"id": "batch_001d59925fc04776b0279ab6f4ef6774", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:37:54Z", "updated_at": "2023-05-12T19:37:54Z", + "created_at": "2024-08-15T19:52:09Z", "updated_at": "2024-08-15T19:52:09Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -40,8 +40,6 @@ interactions: - '384' content-type: - application/json; charset=utf-8 - etag: - - W/"6db3ca79164dabdbeed0dab337621d6f" expires: - '0' pragma: @@ -59,20 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f010645e9592e2cc3956000662cf + - 62c1f5da66be5c68e7885de40016f0a9 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.039491' + - '0.044697' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -96,14 +94,14 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_7517f8f307b6418d82f298a8acb8856e/buy + uri: https://api.easypost.com/v2/batches/batch_001d59925fc04776b0279ab6f4ef6774/buy response: body: - string: '{"id": "batch_7517f8f307b6418d82f298a8acb8856e", "object": "Batch", + string: '{"id": "batch_001d59925fc04776b0279ab6f4ef6774", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:37:54Z", "updated_at": "2023-05-12T19:37:54Z", + "created_at": "2024-08-15T19:52:09Z", "updated_at": "2024-08-15T19:52:09Z", "scan_form": null, "shipments": [{"batch_status": "queued_for_purchase", "batch_message": - null, "reference": null, "tracking_code": null, "id": "shp_9a9615e06531469db90ca8e74d4b2a6e"}], + null, "reference": null, "tracking_code": null, "id": "shp_717bd6cd1eaa4d078b4978a6d9457eda"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -113,8 +111,6 @@ interactions: - '524' content-type: - application/json; charset=utf-8 - etag: - - W/"9632619bcda010c0a517ec181e3f32e1" expires: - '0' pragma: @@ -132,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f010645e9597e2cc395600066408 + - 62c1f5da66be5c6ee7885de40016f5fb x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.055580' + - '0.057053' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -169,15 +165,15 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_7517f8f307b6418d82f298a8acb8856e/label + uri: https://api.easypost.com/v2/batches/batch_001d59925fc04776b0279ab6f4ef6774/label response: body: - string: '{"id": "batch_7517f8f307b6418d82f298a8acb8856e", "object": "Batch", + string: '{"id": "batch_001d59925fc04776b0279ab6f4ef6774", "object": "Batch", "mode": "test", "state": "label_generating", "num_shipments": 1, "reference": - null, "created_at": "2023-05-12T19:37:54Z", "updated_at": "2023-05-12T19:38:04Z", + null, "created_at": "2024-08-15T19:52:09Z", "updated_at": "2024-08-15T19:52:19Z", "scan_form": null, "shipments": [{"batch_status": "postage_purchased", "batch_message": - null, "reference": null, "tracking_code": "9400100104262209121400", "id": - "shp_9a9615e06531469db90ca8e74d4b2a6e"}], "status": {"created": 0, "queued_for_purchase": + null, "reference": null, "tracking_code": "9400100105807075742206", "id": + "shp_717bd6cd1eaa4d078b4978a6d9457eda"}], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 1, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -187,8 +183,6 @@ interactions: - '551' content-type: - application/json; charset=utf-8 - etag: - - W/"79203232fcfe5764a3ebdb3eb6598c9f" expires: - '0' pragma: @@ -206,20 +200,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f010645e959ce2cc395600066558 + - 62c1f5da66be5c73e7885de40016fb0f x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.032656' + - '0.040979' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_retrieve.yaml b/tests/cassettes/test_batch_retrieve.yaml index 9f30d5f9..cf969ab5 100644 --- a/tests/cassettes/test_batch_retrieve.yaml +++ b/tests/cassettes/test_batch_retrieve.yaml @@ -6,7 +6,7 @@ interactions: "from_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}]}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '610' + - '620' Content-Type: - application/json authorization: @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_78252d9d1e6046b5953baf4f54832904", "object": "Batch", + string: '{"id": "batch_32691a0c325b45238d1db58966e2278d", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:30:43Z", "updated_at": "2023-05-12T19:30:43Z", + "created_at": "2024-08-15T19:51:50Z", "updated_at": "2024-08-15T19:51:50Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -40,8 +40,6 @@ interactions: - '384' content-type: - application/json; charset=utf-8 - etag: - - W/"1bd327d381d9729dc30904f4c74daa25" expires: - '0' pragma: @@ -54,27 +52,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00e645e93e3e2cc317d0005d468 + - 62c1f5dd66be5c56e7885dc70016de0a x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.082975' + - '0.052864' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -94,24 +90,23 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/batches/batch_78252d9d1e6046b5953baf4f54832904 + uri: https://api.easypost.com/v2/batches/batch_32691a0c325b45238d1db58966e2278d response: body: - string: '{"id": "batch_78252d9d1e6046b5953baf4f54832904", "object": "Batch", + string: '{"id": "batch_32691a0c325b45238d1db58966e2278d", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:30:43Z", "updated_at": "2023-05-12T19:30:43Z", - "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": - 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": - 0}, "pickup": null, "label_url": null}' + "created_at": "2024-08-15T19:51:50Z", "updated_at": "2024-08-15T19:51:50Z", + "scan_form": null, "shipments": [{"batch_status": "created", "batch_message": + null, "reference": null, "tracking_code": null, "id": "shp_2b8babfdb1db4aa0b1a317b07dc7a75b"}], + "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": + 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '384' + - '513' content-type: - application/json; charset=utf-8 - etag: - - W/"1bd327d381d9729dc30904f4c74daa25" expires: - '0' pragma: @@ -129,20 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00e645e93e4e2cc317d0005d472 + - 62c1f5dd66be5c56e7885dc70016de2d x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.022538' + - '0.027417' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_get_lowest_stateless_rate.yaml b/tests/cassettes/test_beta_get_lowest_stateless_rate.yaml index a95cb160..5f674615 100644 --- a/tests/cassettes/test_beta_get_lowest_stateless_rate.yaml +++ b/tests/cassettes/test_beta_get_lowest_stateless_rate.yaml @@ -32,50 +32,49 @@ interactions: "to_address": {"object": "Address", "name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": ""}, "rates": [{"object": - "Rate", "mode": "test", "service": "Priority", "carrier": "USPS", "rate": - "7.15", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", - "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": - "Rate", "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", - "currency": "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "Rate", "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, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": - "Rate", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": - "Rate", "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": - "6.76", "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", - "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "options": + "Rate", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": + "Rate", "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, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "parcel": {"object": "Parcel", "length": 10.0, "width": 8.0, "height": 4.0, "weight": - 15.4}, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}]}' + 15.4}, "messages": [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "UPS", "carrier_account_id": + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '3061' + - '3184' content-type: - application/json; charset=utf-8 - etag: - - W/"a632bf86a8cc54e08cbb434aad731a39" expires: - '0' pragma: @@ -95,21 +94,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 477e8d7f64626272e786c9240019fd88 + - 62c1f5db66be5c74e7885e030016fcc2 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.648051' + - '0.651300' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_referral_customer_add_payment_method.yaml b/tests/cassettes/test_beta_referral_customer_add_payment_method.yaml index 563cb9f0..b8bc704c 100644 --- a/tests/cassettes/test_beta_referral_customer_add_payment_method.yaml +++ b/tests/cassettes/test_beta_referral_customer_add_payment_method.yaml @@ -22,12 +22,12 @@ interactions: response: body: string: '{"error": {"code": "BILLING.INVALID_PAYMENT_GATEWAY_REFERENCE", "message": - "Invalid Payment Gateway Reference.", "errors": []}}' + "Invalid connect integration.", "errors": []}}' headers: cache-control: - private, no-cache, no-store content-length: - - '121' + - '115' content-type: - application/json; charset=utf-8 expires: @@ -49,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e06463d025e787d99f003405b1 + - 62c1f5d766be5c75e7885e040016fda7 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.048350' + - '0.045661' x-version-label: - - easypost-202305161731-3a88337a74-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_referral_customer_refund_by_amount.yaml b/tests/cassettes/test_beta_referral_customer_refund_by_amount.yaml index d2d69d5e..59ad4d35 100644 --- a/tests/cassettes/test_beta_referral_customer_refund_by_amount.yaml +++ b/tests/cassettes/test_beta_referral_customer_refund_by_amount.yaml @@ -49,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e16463d025e787d9a0003405cc + - 62c1f5d766be5c76e7885e050016fdf8 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.504008' + - '0.429417' x-version-label: - - easypost-202305161731-3a88337a74-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_referral_customer_refund_by_payment_log.yaml b/tests/cassettes/test_beta_referral_customer_refund_by_payment_log.yaml index 44eaa9c4..d1621158 100644 --- a/tests/cassettes/test_beta_referral_customer_refund_by_payment_log.yaml +++ b/tests/cassettes/test_beta_referral_customer_refund_by_payment_log.yaml @@ -48,20 +48,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e36463d026e787d9a1003405fa + - 62c1f5d766be5c76e7885e060016fe97 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.037008' + - '0.027168' x-version-label: - - easypost-202305161731-3a88337a74-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_retrieve_stateless_rates.yaml b/tests/cassettes/test_beta_retrieve_stateless_rates.yaml index d9271484..109312ea 100644 --- a/tests/cassettes/test_beta_retrieve_stateless_rates.yaml +++ b/tests/cassettes/test_beta_retrieve_stateless_rates.yaml @@ -33,49 +33,48 @@ interactions: N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": ""}, "rates": [{"object": "Rate", "mode": "test", "service": "Priority", "carrier": "USPS", "rate": - "7.15", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", - "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": - "Rate", "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", - "currency": "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "Rate", "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, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": - "Rate", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": - "Rate", "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": - "6.76", "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", - "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "options": + "Rate", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "parcel": {"object": "Parcel", "length": 10.0, "width": 8.0, "height": 4.0, "weight": - 15.4}, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}]}' + 15.4}, "messages": [{"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '3061' + - '3184' content-type: - application/json; charset=utf-8 - etag: - - W/"046736d5146c150a74222e444529b376" expires: - '0' pragma: @@ -90,26 +89,27 @@ interactions: - Origin x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 477e8d8364626271e786c9230019fce9 + - 62c1f5d766be5c73e7885e020016fb4f x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.826286' + - '1.168649' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_all.yaml b/tests/cassettes/test_carrier_account_all.yaml index ecf7202b..efb77b90 100644 --- a/tests/cassettes/test_carrier_account_all.yaml +++ b/tests/cassettes/test_carrier_account_all.yaml @@ -54,16 +54,40 @@ interactions: "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:15:16Z", "updated_at": "2023-05-12T21:15:16Z", "description": "DHL eCommerce Solutions Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", - "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}]' + "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": + "ca_c7b4cfaf671b4984b84023d77561394a", "object": "CarrierAccount", "type": + "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:18:18Z", "updated_at": + "2023-05-12T21:18:18Z", "description": "DHL eCommerce Solutions Account", + "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", + "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "object": "CarrierAccount", "type": + "DhlEcsAccount", "clone": false, "created_at": "2024-01-19T23:38:29Z", "updated_at": + "2024-01-19T23:38:30Z", "description": "My custom description", "reference": + null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", "logo": + null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": "ca_4f4f19e3b533485296d62721584e096d", + "object": "CarrierAccount", "type": "UpsAccount", "clone": false, "created_at": + "2024-07-09T17:02:57Z", "updated_at": "2024-07-09T17:02:57Z", "description": + null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": + null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "object": "CarrierAccount", "type": "UpsAccount", "clone": false, "created_at": + "2024-07-09T17:07:29Z", "updated_at": "2024-07-09T17:07:29Z", "description": + null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": + null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "object": "CarrierAccount", "type": "UpsAccount", "clone": false, "created_at": + "2024-07-09T17:07:53Z", "updated_at": "2024-07-09T17:07:53Z", "description": + null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": + null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": "ca_725c14e27c1544a6af0c90d4208f70d3", + "object": "CarrierAccount", "type": "UpsAccount", "clone": false, "created_at": + "2024-07-09T17:19:51Z", "updated_at": "2024-07-09T17:19:51Z", "description": + null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": + null, "fields": [], "credentials": {}, "test_credentials": {}}]' headers: cache-control: - private, no-cache, no-store content-length: - - '9147' + - '17657' content-type: - application/json; charset=utf-8 - etag: - - W/"d33e27ebefc317e9bd700eb7f9a8ee7b" expires: - '0' pragma: @@ -81,20 +105,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b54645ead1ae2aabe7f000e9b95 + - 62c1f5da66be5c78e7885e090016ffc6 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.123827' + - '0.186058' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_create.yaml b/tests/cassettes/test_carrier_account_create.yaml index e934e006..3021d79b 100644 --- a/tests/cassettes/test_carrier_account_create.yaml +++ b/tests/cassettes/test_carrier_account_create.yaml @@ -23,9 +23,9 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: '{"id": "ca_812a1e8411fe44f18a3e7b2f8abab3de", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:18:17Z", - "updated_at": "2023-05-12T21:18:17Z", "description": "DHL eCommerce Solutions + string: '{"id": "ca_0b7c75baca1447d69713754791b2f745", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:23Z", + "updated_at": "2024-08-15T19:52:23Z", "description": "DHL eCommerce Solutions Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' @@ -36,8 +36,6 @@ interactions: - '1469' content-type: - application/json; charset=utf-8 - etag: - - W/"da1ce6607939be1dbe95953bf72baed1" expires: - '0' pragma: @@ -55,20 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00d645ead19e2aabe7d000daa09 + - 62c1f5d766be5c77e7885e070016fede x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.110163' + - '0.067667' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -90,7 +88,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_812a1e8411fe44f18a3e7b2f8abab3de + uri: https://api.easypost.com/v2/carrier_accounts/ca_0b7c75baca1447d69713754791b2f745 response: body: string: '{}' @@ -101,8 +99,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -120,20 +116,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00d645ead19e2aabe7d000daa11 + - 62c1f5d766be5c77e7885e070016ff00 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.114758' + - '0.069825' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_create_ups.yaml b/tests/cassettes/test_carrier_account_create_ups.yaml index 36a389f4..6d5457cb 100644 --- a/tests/cassettes/test_carrier_account_create_ups.yaml +++ b/tests/cassettes/test_carrier_account_create_ups.yaml @@ -20,16 +20,16 @@ interactions: uri: https://api.easypost.com/v2/ups_oauth_registrations response: body: - string: '{"id": "ca_032bd1041a5d4418b8378bcc2a738a45", "object": "CarrierAccount", - "type": "UpsAccount", "clone": false, "created_at": "2024-07-09T17:02:56Z", - "updated_at": "2024-07-09T17:02:56Z", "description": null, "reference": null, + string: '{"id": "ca_3f5c0e3f2a314961af6803e884adf015", "object": "CarrierAccount", + "type": "UpsAccount", "clone": false, "created_at": "2024-08-15T19:52:26Z", + "updated_at": "2024-08-15T19:52:26Z", "description": null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1392' + - '1428' content-type: - application/json; charset=utf-8 expires: @@ -49,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52ecff22668d6d40e2b7ddea00434ef1 + - 62c1f5d766be5c7ae7885e25001701f8 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.087747' + - '0.099510' x-version-label: - - easypost-202407091438-d7c6f02f06-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -84,7 +84,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_032bd1041a5d4418b8378bcc2a738a45 + uri: https://api.easypost.com/v2/carrier_accounts/ca_3f5c0e3f2a314961af6803e884adf015 response: body: string: '{}' @@ -107,27 +107,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 52ecff22668d6d40e2b7ddea00434f1f + - 62c1f5d766be5c7ae7885e2500170220 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.208397' + - '0.065143' x-version-label: - - easypost-202407091438-d7c6f02f06-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_create_with_custom_workflow.yaml b/tests/cassettes/test_carrier_account_create_with_custom_workflow.yaml index 38a5a314..66789556 100644 --- a/tests/cassettes/test_carrier_account_create_with_custom_workflow.yaml +++ b/tests/cassettes/test_carrier_account_create_with_custom_workflow.yaml @@ -63,20 +63,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - cbf774926685bfece2bc38790027cf8b + - 62c1f5db66be5c79e7885e240017019f x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.042392' + - '0.022580' x-version-label: - - easypost-202407031852-b015027e75-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_delete.yaml b/tests/cassettes/test_carrier_account_delete.yaml index 652443f0..8c4d0d54 100644 --- a/tests/cassettes/test_carrier_account_delete.yaml +++ b/tests/cassettes/test_carrier_account_delete.yaml @@ -23,9 +23,9 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: '{"id": "ca_f7f311da4f2a4897ad9382aa86739831", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:18:19Z", - "updated_at": "2023-05-12T21:18:19Z", "description": "DHL eCommerce Solutions + string: '{"id": "ca_2af5dff755c247d6bab02b57c4d4f108", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:25Z", + "updated_at": "2024-08-15T19:52:25Z", "description": "DHL eCommerce Solutions Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' @@ -36,8 +36,6 @@ interactions: - '1469' content-type: - application/json; charset=utf-8 - etag: - - W/"eb766921687771864ea35189bbab2b46" expires: - '0' pragma: @@ -55,20 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b53645ead1be2aabe81000e9bcb + - 62c1f5db66be5c79e7885e0b001700ec x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.107265' + - '0.068937' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -90,7 +88,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_f7f311da4f2a4897ad9382aa86739831 + uri: https://api.easypost.com/v2/carrier_accounts/ca_2af5dff755c247d6bab02b57c4d4f108 response: body: string: '{}' @@ -101,8 +99,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -120,20 +116,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b53645ead1be2aabe81000e9bf0 + - 62c1f5db66be5c79e7885e0b0017010d x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.192042' + - '0.057958' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_retrieve.yaml b/tests/cassettes/test_carrier_account_retrieve.yaml index e8159a04..844d7607 100644 --- a/tests/cassettes/test_carrier_account_retrieve.yaml +++ b/tests/cassettes/test_carrier_account_retrieve.yaml @@ -23,9 +23,9 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: '{"id": "ca_9b328bc471a54c00ae8995e7edde66df", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:18:18Z", - "updated_at": "2023-05-12T21:18:18Z", "description": "DHL eCommerce Solutions + string: '{"id": "ca_ebd53e94cdee405c8fe2c97d9d270339", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:23Z", + "updated_at": "2024-08-15T19:52:23Z", "description": "DHL eCommerce Solutions Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' @@ -36,8 +36,6 @@ interactions: - '1469' content-type: - application/json; charset=utf-8 - etag: - - W/"33d79e2fa6cb5369bb7b6699277c3dd7" expires: - '0' pragma: @@ -55,20 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00f645ead1ae2aabe7e000daa21 + - 62c1f5d766be5c77e7885e080016ff56 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.112895' + - '0.076086' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -88,12 +86,12 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/carrier_accounts/ca_9b328bc471a54c00ae8995e7edde66df + uri: https://api.easypost.com/v2/carrier_accounts/ca_ebd53e94cdee405c8fe2c97d9d270339 response: body: - string: '{"id": "ca_9b328bc471a54c00ae8995e7edde66df", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:18:18Z", - "updated_at": "2023-05-12T21:18:18Z", "description": "DHL eCommerce Solutions + string: '{"id": "ca_ebd53e94cdee405c8fe2c97d9d270339", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:23Z", + "updated_at": "2024-08-15T19:52:23Z", "description": "DHL eCommerce Solutions Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' @@ -104,8 +102,6 @@ interactions: - '1469' content-type: - application/json; charset=utf-8 - etag: - - W/"33d79e2fa6cb5369bb7b6699277c3dd7" expires: - '0' pragma: @@ -123,20 +119,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00f645ead1ae2aabe7e000daa57 + - 62c1f5d766be5c77e7885e080016ff76 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.026662' + - '0.034043' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -158,7 +154,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_9b328bc471a54c00ae8995e7edde66df + uri: https://api.easypost.com/v2/carrier_accounts/ca_ebd53e94cdee405c8fe2c97d9d270339 response: body: string: '{}' @@ -169,8 +165,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -183,25 +177,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 4eb6f00f645ead1ae2aabe7e000daa60 + - 62c1f5d766be5c77e7885e080016ff8e x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.116409' + - '0.055738' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_type.yaml b/tests/cassettes/test_carrier_account_type.yaml index 61872aa0..21ea4678 100644 --- a/tests/cassettes/test_carrier_account_type.yaml +++ b/tests/cassettes/test_carrier_account_type.yaml @@ -16,68 +16,83 @@ interactions: uri: https://api.easypost.com/v2/carrier_types response: body: - string: '[{"object": "CarrierType", "type": "AmazonMwsAccount", "readable": - "Amazon MWS", "logo": null, "fields": []}, {"object": "CarrierType", "type": - "ApcAccount", "readable": "APC", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "AsendiaUsaAccount", "readable": "Asendia USA", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "AustraliaPostAccount", "readable": - "Australia Post", "logo": null, "fields": []}, {"object": "CarrierType", "type": - "AxlehireV3Account", "readable": "AxlehireV3", "logo": null, "fields": []}, - {"object": "CarrierType", "type": "BetterTrucksAccount", "readable": "Better - Trucks", "logo": null, "fields": []}, {"object": "CarrierType", "type": "CanadaPostAccount", - "readable": "Canada Post", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "CanparAccount", "readable": "Canpar", "logo": null, "fields": []}, - {"object": "CarrierType", "type": "ColumbusLastMileAccount", "readable": "CDL - Last Mile Solutions", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "CourierExpressAccount", "readable": "Courier Express", "logo": null, - "fields": []}, {"object": "CarrierType", "type": "CouriersPleaseAccount", + string: '[{"object": "CarrierType", "type": "AccurateAccount", "readable": "Accurate", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "AmazonMwsAccount", + "readable": "Amazon MWS", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "ApcAccount", "readable": "APC", "logo": null, "fields": []}, {"object": + "CarrierType", "type": "AsendiaUsaAccount", "readable": "Asendia USA", "logo": + null, "fields": []}, {"object": "CarrierType", "type": "AustraliaPostAccount", + "readable": "Australia Post", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "BetterTrucksAccount", "readable": "Better Trucks", "logo": null, + "fields": []}, {"object": "CarrierType", "type": "BluestreakAccount", "readable": + "Bluestreak", "logo": null, "fields": []}, {"object": "CarrierType", "type": + "CanadaPostAccount", "readable": "Canada Post", "logo": null, "fields": []}, + {"object": "CarrierType", "type": "CanparAccount", "readable": "Canpar", "logo": + null, "fields": []}, {"object": "CarrierType", "type": "ColumbusLastMileAccount", + "readable": "CDL Last Mile Solutions", "logo": null, "fields": []}, {"object": + "CarrierType", "type": "CourierExpressAccount", "readable": "Courier Express", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "CouriersPleaseAccount", "readable": "CouriersPlease", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "DaiPostAccount", "readable": "Dai Post", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "DeliverItAccount", "readable": "Deliver-It", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "DeutschePostUKAccount", - "readable": "Deutsche Post UK", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "DhlEcommerceAsiaAccount", "readable": "DHL Ecommerce Asia", "logo": - null, "fields": []}, {"object": "CarrierType", "type": "DhlEcsAccount", "readable": + "type": "CSLogisticsAccount", "readable": "CSLogistics", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "DaiPostAccount", "readable": "Dai + Post", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DeliverItAccount", + "readable": "Deliver-It", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "DeutschePostUKAccount", "readable": "Deutsche Post UK", "logo": null, + "fields": []}, {"object": "CarrierType", "type": "DhlEcsAccount", "readable": "DHL eCommerce Solutions", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DhlExpressAccount", "readable": "DHL Express", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DhlPaketAccount", "readable": "DHL Paket", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DhlParcelAccount", "readable": "DHL Parcel", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "DpdAccount", "readable": "DPD", "logo": null, "fields": []}, {"object": - "CarrierType", "type": "DpdUkAccount", "readable": "DPD UK", "logo": null, - "fields": []}, {"object": "CarrierType", "type": "DpdNlAccount", "readable": - "DPD NL", "logo": null, "fields": []}, {"object": "CarrierType", "type": "EstafetaAccount", - "readable": "Estafeta", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "FastwayAccount", "readable": "Fastway", "logo": null, "fields": []}, - {"object": "CarrierType", "type": "FedexAccount", "readable": "FedEx", "logo": - null, "fields": []}, {"object": "CarrierType", "type": "FedexCrossBorderAccount", + "type": "DoorDashAccount", "readable": "DoorDash", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "DouglasAccount", "readable": "Douglas", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "DpdAccount", + "readable": "DPD", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "DpdUkAccount", "readable": "DPD UK", "logo": null, "fields": []}, + {"object": "CarrierType", "type": "DpdNlAccount", "readable": "DPD NL", "logo": + null, "fields": []}, {"object": "CarrierType", "type": "EPostGlobalV2Account", + "readable": "EPost Global V2", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "EstafetaAccount", "readable": "Estafeta", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "FedexAccount", "readable": "FedEx", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "FedexCrossBorderAccount", "readable": "FedEx Cross Border", "logo": null, "fields": []}, {"object": "CarrierType", "type": "FedexMailviewAccount", "readable": "FedEx MailView", "logo": null, "fields": []}, {"object": "CarrierType", "type": "FedexSmartpostAccount", "readable": "FedEx SmartPost", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "FirstMileConciseAccount", "readable": "First Mile", "logo": null, - "fields": []}, {"object": "CarrierType", "type": "GsoAccount", "readable": - "GSO", "logo": null, "fields": []}, {"object": "CarrierType", "type": "HailifyAccount", - "readable": "Hailify", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "HermesAccount", "readable": "Evri", "logo": null, "fields": []}, - {"object": "CarrierType", "type": "InterlinkExpressAccount", "readable": "Interlink - Express", "logo": null, "fields": []}, {"object": "CarrierType", "type": "LasershipV2Account", - "readable": "LaserShipV2", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "LoomisExpressAccount", "readable": "Loomis Express", "logo": null, - "fields": []}, {"object": "CarrierType", "type": "LsoAccount", "readable": - "LSO", "logo": null, "fields": []}, {"object": "CarrierType", "type": "NewgisticsAccount", - "readable": "Newgistics", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "OmniParcelAccount", "readable": "OmniParcel", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "OntracAccount", "readable": "OnTrac", + "type": "FirstChoiceAccount", "readable": "First Choice", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "FirstMileConciseAccount", "readable": + "First Mile", "logo": null, "fields": []}, {"object": "CarrierType", "type": + "FlexportAccount", "readable": "Flexport", "logo": null, "fields": []}, {"object": + "CarrierType", "type": "GioAccount", "readable": "Gio", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "GsoAccount", "readable": "GSO", "logo": + null, "fields": []}, {"object": "CarrierType", "type": "HailifyAccount", "readable": + "Hailify", "logo": null, "fields": []}, {"object": "CarrierType", "type": + "HenryAccount", "readable": "Henry", "logo": null, "fields": []}, {"object": + "CarrierType", "type": "HermesAccount", "readable": "Evri", "logo": null, + "fields": []}, {"object": "CarrierType", "type": "InterlinkExpressAccount", + "readable": "Interlink Express", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "JetAccount", "readable": "Jet", "logo": null, "fields": []}, {"object": + "CarrierType", "type": "JitsuAccount", "readable": "Jitsu", "logo": null, + "fields": []}, {"object": "CarrierType", "type": "LasershipV2Account", "readable": + "LaserShipV2", "logo": null, "fields": []}, {"object": "CarrierType", "type": + "LoomisExpressAccount", "readable": "Loomis Express", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "LsoAccount", "readable": "LSO", "logo": + null, "fields": []}, {"object": "CarrierType", "type": "OmniParcelAccount", + "readable": "OmniParcel", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "OntracAccount", "readable": "OnTrac", "logo": null, "fields": []}, + {"object": "CarrierType", "type": "OntracV3Account", "readable": "OnTrac V3", "logo": null, "fields": []}, {"object": "CarrierType", "type": "OptimaAccount", "readable": "Optima", "logo": null, "fields": []}, {"object": "CarrierType", "type": "OsmWorldwideAccount", "readable": "OSM Worldwide", "logo": null, - "fields": []}, {"object": "CarrierType", "type": "ParcelForceAccount", "readable": - "Parcel Force", "logo": null, "fields": []}, {"object": "CarrierType", "type": - "ParcllAccount", "readable": "Parcll", "logo": null, "fields": []}, {"object": - "CarrierType", "type": "PassportGlobalAccount", "readable": "Passport Global", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "PurolatorAccount", - "readable": "Purolator", "logo": null, "fields": []}, {"object": "CarrierType", + "fields": []}, {"object": "CarrierType", "type": "PandionAccount", "readable": + "Pandion", "logo": null, "fields": []}, {"object": "CarrierType", "type": + "ParcelForceAccount", "readable": "Parcel Force", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "ParcllAccount", "readable": "Cirro + E-Commerce", "logo": null, "fields": []}, {"object": "CarrierType", "type": + "PassportGlobalAccount", "readable": "Passport Global", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "PurolatorAccount", "readable": "Purolator", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "QuickAccount", + "readable": "Quick", "logo": null, "fields": []}, {"object": "CarrierType", "type": "RoyalMailAccount", "readable": "Royal Mail", "logo": null, "fields": []}, {"object": "CarrierType", "type": "RRDonnelleyAccount", "readable": "ePost Global", "logo": null, "fields": []}, {"object": "CarrierType", "type": "SendleAccount", @@ -88,28 +103,26 @@ interactions: "readable": "Sonic", "logo": null, "fields": []}, {"object": "CarrierType", "type": "SpeedeeAccount", "readable": "Spee-Dee", "logo": null, "fields": []}, {"object": "CarrierType", "type": "SwyftAccount", "readable": "Swyft", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "TforceConciseAccount", - "readable": "TForce", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "TollAccount", "readable": "Toll", "logo": null, "fields": []}, {"object": - "CarrierType", "type": "UdsAccount", "readable": "UDS", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "UpsAccount", "readable": "UPS", "logo": - null, "fields": []}, {"object": "CarrierType", "type": "UpsIparcelAccount", - "readable": "UPS i-Parcel", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "UpsMailInnovationsAccount", "readable": "UPS Mail Innovations", "logo": - null, "fields": []}, {"object": "CarrierType", "type": "UspsAccount", "readable": - "USPS", "logo": null, "fields": []}, {"object": "CarrierType", "type": "VehoAccount", - "readable": "Veho", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "XDeliveryAccount", "readable": "Maergo", "logo": null, "fields": - []}]' + "logo": null, "fields": []}, {"object": "CarrierType", "type": "TccAccount", + "readable": "Tcc", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "TforceConciseAccount", "readable": "TForce", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "TollAccount", "readable": "Toll", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "UdsAccount", + "readable": "UDS", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "UpsAccount", "readable": "UPS", "logo": null, "fields": []}, {"object": + "CarrierType", "type": "UpsIparcelAccount", "readable": "UPS i-Parcel", "logo": + null, "fields": []}, {"object": "CarrierType", "type": "UpsMailInnovationsAccount", + "readable": "UPS Mail Innovations", "logo": null, "fields": []}, {"object": + "CarrierType", "type": "UspsAccount", "readable": "USPS", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "VehoAccount", "readable": "Veho", + "logo": null, "fields": []}]' headers: cache-control: - private, no-cache, no-store content-length: - - '37555' + - '41628' content-type: - application/json; charset=utf-8 - etag: - - W/"66c0eaa20ef9e6d125b3e41146cc1cce" expires: - '0' pragma: @@ -127,21 +140,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - cdb1f666645ead1be2aabe8200016846 + - 62c1f5d966be5c79e7885e230017015f x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.023892' + - '0.027471' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_update.yaml b/tests/cassettes/test_carrier_account_update.yaml index 712b8f12..14453864 100644 --- a/tests/cassettes/test_carrier_account_update.yaml +++ b/tests/cassettes/test_carrier_account_update.yaml @@ -23,9 +23,9 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: '{"id": "ca_c58170a2b708469eb2828ce150f818c5", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-07-08T20:54:18Z", - "updated_at": "2024-07-08T20:54:18Z", "description": "DHL eCommerce Solutions + string: '{"id": "ca_8369ceeeaebf4690b440f6be8a780d7f", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:24Z", + "updated_at": "2024-08-15T19:52:24Z", "description": "DHL eCommerce Solutions Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' @@ -48,27 +48,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - df6fc7b2668c51fae2cba07700263f54 + - 62c1f5da66be5c78e7885e0a00170031 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.127030' + - '0.067883' x-version-label: - - easypost-202407081949-3228d5845b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -88,12 +86,12 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/carrier_accounts/ca_c58170a2b708469eb2828ce150f818c5 + uri: https://api.easypost.com/v2/carrier_accounts/ca_8369ceeeaebf4690b440f6be8a780d7f response: body: - string: '{"id": "ca_c58170a2b708469eb2828ce150f818c5", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-07-08T20:54:18Z", - "updated_at": "2024-07-08T20:54:18Z", "description": "DHL eCommerce Solutions + string: '{"id": "ca_8369ceeeaebf4690b440f6be8a780d7f", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:24Z", + "updated_at": "2024-08-15T19:52:24Z", "description": "DHL eCommerce Solutions Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' @@ -116,27 +114,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - df6fc7b2668c51fbe2cba07700263f78 + - 62c1f5da66be5c78e7885e0a00170054 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.036536' + - '0.035064' x-version-label: - - easypost-202407081949-3228d5845b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -160,12 +156,12 @@ interactions: user-agent: - method: PATCH - uri: https://api.easypost.com/v2/carrier_accounts/ca_c58170a2b708469eb2828ce150f818c5 + uri: https://api.easypost.com/v2/carrier_accounts/ca_8369ceeeaebf4690b440f6be8a780d7f response: body: - string: '{"id": "ca_c58170a2b708469eb2828ce150f818c5", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-07-08T20:54:18Z", - "updated_at": "2024-07-08T20:54:19Z", "description": "My custom description", + string: '{"id": "ca_8369ceeeaebf4690b440f6be8a780d7f", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:24Z", + "updated_at": "2024-08-15T19:52:24Z", "description": "My custom description", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: @@ -192,20 +188,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - df6fc7b2668c51fbe2cba07700263f8d + - 62c1f5da66be5c78e7885e0a00170076 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.113688' + - '0.082168' x-version-label: - - easypost-202407081949-3228d5845b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -227,7 +223,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_c58170a2b708469eb2828ce150f818c5 + uri: https://api.easypost.com/v2/carrier_accounts/ca_8369ceeeaebf4690b440f6be8a780d7f response: body: string: '{}' @@ -255,20 +251,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - df6fc7b2668c51fbe2cba07700263fb1 + - 62c1f5da66be5c78e7885e0a0017009e x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.066036' + - '0.056364' x-version-label: - - easypost-202407081949-3228d5845b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_update_ups.yaml b/tests/cassettes/test_carrier_account_update_ups.yaml index 005b5423..8ae7243e 100644 --- a/tests/cassettes/test_carrier_account_update_ups.yaml +++ b/tests/cassettes/test_carrier_account_update_ups.yaml @@ -20,16 +20,16 @@ interactions: uri: https://api.easypost.com/v2/ups_oauth_registrations response: body: - string: '{"id": "ca_e5527ea2bd0f44c59f85fd198428da2b", "object": "CarrierAccount", - "type": "UpsAccount", "clone": false, "created_at": "2024-07-09T17:22:32Z", - "updated_at": "2024-07-09T17:22:32Z", "description": null, "reference": null, + string: '{"id": "ca_ee3d90a7215b41c1ace15172cd769907", "object": "CarrierAccount", + "type": "UpsAccount", "clone": false, "created_at": "2024-08-15T19:52:26Z", + "updated_at": "2024-08-15T19:52:26Z", "description": null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1388' + - '1396' content-type: - application/json; charset=utf-8 expires: @@ -49,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52ecff1e668d71d8e2b7eef000485d09 + - 62c1f5dc66be5c7ae7885e2600170282 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.090996' + - '0.085132' x-version-label: - - easypost-202407091438-d7c6f02f06-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -82,19 +82,19 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/carrier_accounts/ca_e5527ea2bd0f44c59f85fd198428da2b + uri: https://api.easypost.com/v2/carrier_accounts/ca_ee3d90a7215b41c1ace15172cd769907 response: body: - string: '{"id": "ca_e5527ea2bd0f44c59f85fd198428da2b", "object": "CarrierAccount", - "type": "UpsAccount", "clone": false, "created_at": "2024-07-09T17:22:32Z", - "updated_at": "2024-07-09T17:22:32Z", "description": null, "reference": null, + string: '{"id": "ca_ee3d90a7215b41c1ace15172cd769907", "object": "CarrierAccount", + "type": "UpsAccount", "clone": false, "created_at": "2024-08-15T19:52:26Z", + "updated_at": "2024-08-15T19:52:26Z", "description": null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1388' + - '1396' content-type: - application/json; charset=utf-8 expires: @@ -109,25 +109,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 52ecff1e668d71d8e2b7eef000485d33 + - 62c1f5dc66be5c7ae7885e26001702b3 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.040106' + - '0.032327' x-version-label: - - easypost-202407091438-d7c6f02f06-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -151,19 +153,19 @@ interactions: user-agent: - method: PATCH - uri: https://api.easypost.com/v2/ups_oauth_registrations/ca_e5527ea2bd0f44c59f85fd198428da2b + uri: https://api.easypost.com/v2/ups_oauth_registrations/ca_ee3d90a7215b41c1ace15172cd769907 response: body: - string: '{"id": "ca_e5527ea2bd0f44c59f85fd198428da2b", "object": "CarrierAccount", - "type": "UpsAccount", "clone": false, "created_at": "2024-07-09T17:22:32Z", - "updated_at": "2024-07-09T17:22:32Z", "description": null, "reference": null, + string: '{"id": "ca_ee3d90a7215b41c1ace15172cd769907", "object": "CarrierAccount", + "type": "UpsAccount", "clone": false, "created_at": "2024-08-15T19:52:26Z", + "updated_at": "2024-08-15T19:52:27Z", "description": null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1416' + - '1396' content-type: - application/json; charset=utf-8 expires: @@ -183,20 +185,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52ecff1e668d71d8e2b7eef000485d4a + - 62c1f5dc66be5c7ae7885e26001702cb x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.079076' + - '0.064354' x-version-label: - - easypost-202407091438-d7c6f02f06-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -218,7 +220,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_e5527ea2bd0f44c59f85fd198428da2b + uri: https://api.easypost.com/v2/carrier_accounts/ca_ee3d90a7215b41c1ace15172cd769907 response: body: string: '{}' @@ -241,25 +243,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 52ecff1e668d71d9e2b7eef000485d62 + - 62c1f5dc66be5c7be7885e26001702e5 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.078431' + - '0.061426' x-version-label: - - easypost-202407091438-d7c6f02f06-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_child_user_api_keys.yaml b/tests/cassettes/test_child_user_api_keys.yaml index 32bb4e56..a37a5b2d 100644 --- a/tests/cassettes/test_child_user_api_keys.yaml +++ b/tests/cassettes/test_child_user_api_keys.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: '{"id": "user_f72c502dd7a444c29b905f83abe2d518", "object": "User", "parent_id": + string: '{"id": "user_8a1033cc63704acf940e2466acce59b6", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2023-09-27T19:14:02Z", "default_carbon_offset": + "", "verified": true, "created_at": "2024-08-15T19:51:49Z", "default_carbon_offset": false, "has_elevate_access": false, "children": [], "api_keys": [{"object": - "ApiKey", "key": "", "mode": "test", "created_at": "2023-09-27T19:14:02Z", - "active": true, "id": "ak_8f90ceb343ff483eb8f88ceb0a061b51"}, {"object": "ApiKey", - "key": "", "mode": "production", "created_at": "2023-09-27T19:14:02Z", - "active": true, "id": "ak_7035ab827a8a4f0d9074885785fe4305"}]}' + "ApiKey", "key": "", "mode": "test", "created_at": "2024-08-15T19:51:49Z", + "active": true, "id": "ak_6e17f070f1a5440d82de587ac863c5cc"}, {"object": "ApiKey", + "key": "", "mode": "production", "created_at": "2024-08-15T19:51:49Z", + "active": true, "id": "ak_c6fc2227fa47471fa8585d98ea6a89f5"}]}' headers: cache-control: - private, no-cache, no-store @@ -35,8 +35,6 @@ interactions: - '691' content-type: - application/json; charset=utf-8 - etag: - - W/"319590edac15dcf261dcab1509db5d3c" expires: - '0' pragma: @@ -54,7 +52,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 7a8b9d9765147efaf42f28ca00499588 + - 62c1f5d766be5c55e7885dc50016dc77 x-frame-options: - SAMEORIGIN x-node: @@ -62,13 +60,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq cac2303bbb - - intlb2wdc cac2303bbb - - extlb4wdc 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.737052' + - '0.491919' x-version-label: - - easypost-202309271719-1317a54bfa-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -88,12 +85,12 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/users/user_f72c502dd7a444c29b905f83abe2d518 + uri: https://api.easypost.com/v2/users/user_8a1033cc63704acf940e2466acce59b6 response: body: - string: '{"id": "user_f72c502dd7a444c29b905f83abe2d518", "object": "User", "parent_id": + string: '{"id": "user_8a1033cc63704acf940e2466acce59b6", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2023-09-27T19:14:02Z", "default_carbon_offset": + "", "verified": true, "created_at": "2024-08-15T19:51:49Z", "default_carbon_offset": false, "has_elevate_access": false, "children": []}' headers: cache-control: @@ -102,8 +99,6 @@ interactions: - '284' content-type: - application/json; charset=utf-8 - etag: - - W/"71ec2f5c910235246ff2f7d50121651c" expires: - '0' pragma: @@ -121,21 +116,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 7a8b9d9765147efaf42f28ca004995db + - 62c1f5d766be5c55e7885dc50016dd0c x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq cac2303bbb - - intlb1wdc cac2303bbb - - extlb4wdc 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.036852' + - '0.045726' x-version-label: - - easypost-202309271719-1317a54bfa-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -163,20 +157,42 @@ interactions: "2022-02-24T20:59:05Z", "id": "ak_16f993eae7984eab94e0957a78bee407"}, {"object": "ApiKey", "active": true, "key": "", "mode": "production", "created_at": "2022-02-24T20:59:14Z", "id": "ak_62524a9c3f684f65ab9eccbf70950df8"}], "children": - [{"id": "user_f72c502dd7a444c29b905f83abe2d518", "keys": [{"object": "ApiKey", - "active": true, "key": "", "mode": "test", "created_at": "2023-09-27T19:14:02Z", - "id": "ak_8f90ceb343ff483eb8f88ceb0a061b51"}, {"object": "ApiKey", "active": - true, "key": "", "mode": "production", "created_at": "2023-09-27T19:14:02Z", - "id": "ak_7035ab827a8a4f0d9074885785fe4305"}], "children": []}]}' + [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", "keys": [{"object": "ApiKey", + "active": true, "key": "", "mode": "test", "created_at": "2023-12-11T17:13:38Z", + "id": "ak_90e045d452174b3e99198138dc7938f5"}, {"object": "ApiKey", "active": + true, "key": "", "mode": "production", "created_at": "2023-12-11T17:13:38Z", + "id": "ak_7ef472842fda4256b72779e74653ca79"}], "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", + "keys": [{"object": "ApiKey", "active": true, "key": "", "mode": + "test", "created_at": "2023-12-11T17:13:43Z", "id": "ak_726be943161e4028a347dd2389284d7d"}, + {"object": "ApiKey", "active": true, "key": "", "mode": "production", + "created_at": "2023-12-11T17:13:43Z", "id": "ak_dd9f2e1f14d342679191eee4b69b6ad0"}], + "children": []}, {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "keys": [{"object": + "ApiKey", "active": true, "key": "", "mode": "test", "created_at": + "2024-01-04T19:56:21Z", "id": "ak_e14b2c164b95497a8b9141b2ad212855"}, {"object": + "ApiKey", "active": true, "key": "", "mode": "production", "created_at": + "2024-01-04T19:56:21Z", "id": "ak_a35fabeaec96494694ec0c8726103a80"}], "children": + []}, {"id": "user_31754439d4524fbb8867d138de537e12", "keys": [{"object": "ApiKey", + "active": true, "key": "", "mode": "test", "created_at": "2024-01-19T21:42:21Z", + "id": "ak_dffa08301f7d4a54895f7840d54d05e0"}, {"object": "ApiKey", "active": + true, "key": "", "mode": "production", "created_at": "2024-01-19T21:42:21Z", + "id": "ak_d386ae3ceee04b0880002cd39dca2587"}], "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", + "keys": [{"object": "ApiKey", "active": true, "key": "", "mode": + "test", "created_at": "2024-01-19T21:44:18Z", "id": "ak_92d46dfa461245bba1ec48aac1f2090d"}, + {"object": "ApiKey", "active": true, "key": "", "mode": "production", + "created_at": "2024-01-19T21:44:18Z", "id": "ak_8637c80064224594b9dfdf82efbb27b7"}], + "children": []}, {"id": "user_8a1033cc63704acf940e2466acce59b6", "keys": [{"object": + "ApiKey", "active": true, "key": "", "mode": "test", "created_at": + "2024-08-15T19:51:49Z", "id": "ak_6e17f070f1a5440d82de587ac863c5cc"}, {"object": + "ApiKey", "active": true, "key": "", "mode": "production", "created_at": + "2024-08-15T19:51:49Z", "id": "ak_c6fc2227fa47471fa8585d98ea6a89f5"}], "children": + []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '926' + - '3246' content-type: - application/json; charset=utf-8 - etag: - - W/"84380e4a04340a6b5c74dd59c777da8b" expires: - '0' pragma: @@ -194,21 +210,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 7a8b9d9765147efbf42f28ca00499606 + - 62c1f5d766be5c55e7885dc50016dd32 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq cac2303bbb - - intlb1wdc cac2303bbb - - extlb4wdc 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.034916' + - '0.035148' x-version-label: - - easypost-202309271719-1317a54bfa-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -230,7 +245,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/users/user_f72c502dd7a444c29b905f83abe2d518 + uri: https://api.easypost.com/v2/users/user_8a1033cc63704acf940e2466acce59b6 response: body: string: '' @@ -247,26 +262,27 @@ interactions: - max-age=31536000; includeSubDomains; preload x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 7a8b9d9765147efbf42f28ca00499617 + - 62c1f5d766be5c55e7885dc50016dd56 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq cac2303bbb - - intlb2wdc cac2303bbb - - extlb4wdc 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.148696' + - '0.090093' x-version-label: - - easypost-202309271719-1317a54bfa-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_all.yaml b/tests/cassettes/test_claim_all.yaml index 99e291f7..9bb242fb 100644 --- a/tests/cassettes/test_claim_all.yaml +++ b/tests/cassettes/test_claim_all.yaml @@ -16,7 +16,47 @@ interactions: uri: https://api.easypost.com/v2/claims?page_size=5 response: body: - string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7b9b0171ae7b4e258f765822e7cddb71.png", + string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/c362d4779c924f598e77e03b784a8562.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/438ff93724ed4756a2a19a5da91226dd.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/d81d826438e84c19b03d7b57d387526e.png"], + "check_delivery_address": null, "contact_email": "test@example.com", "created_at": + "2024-08-15T19:52:33", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:33"}], + "id": "clm_09816458dd9d483ba94edbde30104139", "insurance_amount": "100.00", + "insurance_id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "mode": "test", "object": + "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": + "100.00", "salvage_value": null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", + "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": + "2024-08-15T19:52:33", "tracking_code": "9400100105807075742367", "type": + "damage", "updated_at": "2024-08-15T19:52:33"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/cd4a4ca08f8c4fa1a57c1fbe6beb1879.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/ca160db21ac5455f9a865812e58b10d3.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/801e8c25392d4921a994888367961787.png"], + "check_delivery_address": null, "contact_email": "test@example.com", "created_at": + "2024-08-15T19:52:30", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:30"}], + "id": "clm_09817b6b616a41929c00e7e6d9dd559c", "insurance_amount": "100.00", + "insurance_id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "mode": "test", "object": + "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": + "100.00", "salvage_value": null, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", + "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": + "2024-08-15T19:52:30", "tracking_code": "9400100105807075742343", "type": + "damage", "updated_at": "2024-08-15T19:52:30"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/533eff379afa47759cdc14f19e190fc7.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4715d1ddc5e448ad924c029d8407b9e4.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/987f3e1a094044219e640163b1074ff7.png"], + "check_delivery_address": null, "contact_email": "test@example.com", "created_at": + "2024-07-23T17:53:44", "description": "Test description", "history": [{"status": + "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": + "2024-07-23T17:53:45"}, {"status": "submitted", "status_detail": "Claim was + created.", "timestamp": "2024-07-23T17:53:44"}], "id": "clm_097eda66d06e42ec84449bbd34671a7d", + "insurance_amount": "100.00", "insurance_id": "ins_8d75d3dcf398461aaa330e48dbd4c19e", + "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": + null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": + "shp_82fecc386f314823ad6b1a35365b7f4e", "status": "cancelled", "status_detail": + "Claim cancellation was requested.", "status_timestamp": "2024-07-23T17:53:45", + "tracking_code": "9400100110368066361872", "type": "damage", "updated_at": + "2024-07-23T17:53:45"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7b9b0171ae7b4e258f765822e7cddb71.png", "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2cd9fdd33a7d40fc84ac8f87c3da1f86.png", "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/d3aebbc42e884769ad810c92c26ad8ad.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": @@ -41,47 +81,7 @@ interactions: "100.00", "salvage_value": null, "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": "2024-07-23T17:53:36", "tracking_code": "9400100110368066361827", "type": - "damage", "updated_at": "2024-07-23T17:53:36"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7280de6a4ce249e6af34cfd8fc2c8613.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9faca9b590ed4616aaa385e717969828.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/5c641ae1e5a54a53ab6ded433ebfabdc.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:10:33", "description": "Test description", "history": [{"status": - "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": - "2024-07-23T17:12:03"}, {"status": "submitted", "status_detail": "Claim was - created.", "timestamp": "2024-07-23T17:10:33"}], "id": "clm_097e39b748d24c32a0bd61840fc0763f", - "insurance_amount": "249.99", "insurance_id": "ins_d15880e5772c4373aec497744fa4da54", - "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": - null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": - "shp_09a808dae97442f3aa7fbd994a3533d4", "status": "cancelled", "status_detail": - "Claim cancellation was requested.", "status_timestamp": "2024-07-23T17:12:03", - "tracking_code": "9470100110368066351889", "type": "damage", "updated_at": - "2024-07-23T17:12:03"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d0c4ff3d71c4f5d8ec5c21bcfeaf419.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/8f78018b1c6941cdafd1ca9d36579e40.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/973d2a48b6b04423b1d112dff79e85e3.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T20:47:51", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T20:47:51"}], - "id": "clm_097ed32c795141499bb0a5e17a4fe24f", "insurance_amount": "249.99", - "insurance_id": "ins_fa5c89fcf765494b921a96c4e4004476", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_5bcff1867a1f4a29a67db9a84a2082c5", - "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-22T20:47:51", "tracking_code": "9434600110368065978707", "type": - "damage", "updated_at": "2024-07-22T20:47:51"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d0c4ff3d71c4f5d8ec5c21bcfeaf419.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/8f78018b1c6941cdafd1ca9d36579e40.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/973d2a48b6b04423b1d112dff79e85e3.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T20:47:51", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T20:47:51"}], - "id": "clm_097ed32c795141499bb0a5e17a4fe24f", "insurance_amount": "249.99", - "insurance_id": "ins_fa5c89fcf765494b921a96c4e4004476", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_5bcff1867a1f4a29a67db9a84a2082c5", - "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-22T20:47:51", "tracking_code": "9434600110368065978707", "type": - "damage", "updated_at": "2024-07-22T20:47:51"}], "has_more": true}' + "damage", "updated_at": "2024-07-23T17:53:36"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store @@ -106,7 +106,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4764841f669fee25f41d2db300528ce6 + - 62c1f5dc66be5c82e7885e2b00170a7f x-frame-options: - SAMEORIGIN x-node: @@ -114,12 +114,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.053691' + - '0.068739' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_cancel.yaml b/tests/cassettes/test_claim_cancel.yaml index 9d533a23..9d2d366e 100644 --- a/tests/cassettes/test_claim_cancel.yaml +++ b/tests/cassettes/test_claim_cancel.yaml @@ -31,94 +31,94 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-07-23T17:53:42Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:52:35Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid Access License number"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-07-23T17:53:42Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_e367a8bdacc349f1aa99400ee0522aa9", - "object": "CustomsInfo", "created_at": "2024-07-23T17:53:42Z", "updated_at": - "2024-07-23T17:53:42Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2024-08-15T19:52:36Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_c7e6838e55aa4c0380bacfd1011adf6c", + "object": "CustomsInfo", "created_at": "2024-08-15T19:52:35Z", "updated_at": + "2024-08-15T19:52:35Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_9a7ad631dbb14255a0cd76209f3c4d76", "object": "CustomsItem", - "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + [{"id": "cstitem_79f2018825ef41a7a516fbab7842bb2d", "object": "CustomsItem", + "created_at": "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_7f98d03a491c11efa416ac1f6bc53342", "object": - "Address", "created_at": "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:42+00:00", + null}]}, "from_address": {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_638b6dd2ce5548ec85d67b255accfbd2", - "object": "Parcel", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c6ad08dabc6541e787a4f5239f2dd21b", + "object": "Parcel", "created_at": "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_f5af06c34647410c94997ff78cf3d5eb", - "object": "Rate", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_70ba914fbf544898885230f6a3415fa5", + "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6f47529b84714dc88fb651a807aa6353", - "object": "Rate", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4e065fa607f94fe489a2ec1cd2b1a6a2", + "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "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_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bbe31567958340158fffe99976c707a1", - "object": "Rate", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + 2, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", + "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "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_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": + 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_7f960d15491c11efb81cac1f6bc539ae", - "object": "Address", "created_at": "2024-07-23T17:53:42+00:00", "updated_at": - "2024-07-23T17:53:42+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": + "2024-08-15T19:52:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_7f98d03a491c11efa416ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:42+00:00", "name": + {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_7f960d15491c11efb81cac1f6bc539ae", "object": - "Address", "created_at": "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:42+00:00", + {}}, "buyer_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_82fecc386f314823ad6b1a35365b7f4e", + {}}, "forms": [], "fees": [], "id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "object": "Shipment"}' headers: cache-control: @@ -130,7 +130,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_82fecc386f314823ad6b1a35365b7f4e + - /api/v2/shipments/shp_8fc7dc5b18a9489086367f4e76016b3e pragma: - no-cache referrer-policy: @@ -146,27 +146,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 47648423669fee25f40ba25a00528d65 + - 62c1f5dc66be5c83e788613b00170b43 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - extlb2nuq b6e1b5034c x-runtime: - - '0.738361' + - '0.817338' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_bbe31567958340158fffe99976c707a1"}}' + body: '{"rate": {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d"}}' headers: Accept: - '*/*' @@ -183,100 +183,100 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_82fecc386f314823ad6b1a35365b7f4e/buy + uri: https://api.easypost.com/v2/shipments/shp_8fc7dc5b18a9489086367f4e76016b3e/buy response: body: - string: '{"created_at": "2024-07-23T17:53:42Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:52:35Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid Access License number"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100110368066361872", "updated_at": "2024-07-23T17:53:43Z", "batch_id": + "9400100105807075742381", "updated_at": "2024-08-15T19:52:37Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_e367a8bdacc349f1aa99400ee0522aa9", "object": "CustomsInfo", "created_at": - "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", "contents_explanation": + "cstinfo_c7e6838e55aa4c0380bacfd1011adf6c", "object": "CustomsInfo", "created_at": + "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_9a7ad631dbb14255a0cd76209f3c4d76", - "object": "CustomsItem", "created_at": "2024-07-23T17:53:42Z", "updated_at": - "2024-07-23T17:53:42Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_79f2018825ef41a7a516fbab7842bb2d", + "object": "CustomsItem", "created_at": "2024-08-15T19:52:35Z", "updated_at": + "2024-08-15T19:52:35Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_7f98d03a491c11efa416ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:42+00:00", "name": + "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_638b6dd2ce5548ec85d67b255accfbd2", - "object": "Parcel", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c6ad08dabc6541e787a4f5239f2dd21b", + "object": "Parcel", "created_at": "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_29c24685eef84a2e8540c4da72373ca6", - "created_at": "2024-07-23T17:53:43Z", "updated_at": "2024-07-23T17:53:43Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-07-23T17:53:43Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6832b1ef0dd64fb585df71704d6749ab", + "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:37Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:36Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e89d129a870fc84ffeaa8325ad6c2b40f7.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e81e02e001b2f741898a14150f135326d1.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f5af06c34647410c94997ff78cf3d5eb", "object": - "Rate", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + null}, "rates": [{"id": "rate_70ba914fbf544898885230f6a3415fa5", "object": + "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6f47529b84714dc88fb651a807aa6353", - "object": "Rate", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4e065fa607f94fe489a2ec1cd2b1a6a2", + "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "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_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bbe31567958340158fffe99976c707a1", - "object": "Rate", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + 2, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", + "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "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_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": + 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_bbe31567958340158fffe99976c707a1", "object": - "Rate", "created_at": "2024-07-23T17:53:43Z", "updated_at": "2024-07-23T17:53:43Z", + null, "selected_rate": {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", "object": + "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "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_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_094807d115c14008b09588e9a336d226", - "object": "Tracker", "mode": "test", "tracking_code": "9400100110368066361872", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-07-23T17:53:43Z", - "updated_at": "2024-07-23T17:53:43Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", "carrier": "USPS", + 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_54131fb3d69d493e85b1cea4c2629a71", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742381", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:37Z", + "updated_at": "2024-08-15T19:52:37Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzA5NDgwN2QxMTVjMTQwMDhiMDk1ODhlOWEzMzZkMjI2"}, - "to_address": {"id": "adr_7f960d15491c11efb81cac1f6bc539ae", "object": "Address", - "created_at": "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:43+00:00", + "https://track.easypost.com/djE6dHJrXzU0MTMxZmIzZDY5ZDQ5M2U4NWIxY2VhNGMyNjI5YTcx"}, + "to_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -284,14 +284,14 @@ interactions: "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_7f98d03a491c11efa416ac1f6bc53342", "object": - "Address", "created_at": "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:42+00:00", + 4, "return_address": {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_7f960d15491c11efb81cac1f6bc539ae", "object": - "Address", "created_at": "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:43+00:00", + {}}, "buyer_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -301,7 +301,7 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_82fecc386f314823ad6b1a35365b7f4e", + "5.93000", "charged": true, "refunded": false}], "id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "object": "Shipment"}' headers: cache-control: @@ -327,20 +327,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 47648423669fee26f40ba25a00528e11 + - 62c1f5dc66be5c84e788613b00170c27 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - extlb2nuq b6e1b5034c x-runtime: - - '1.069427' + - '0.805426' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -364,103 +364,103 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_82fecc386f314823ad6b1a35365b7f4e/insure + uri: https://api.easypost.com/v2/shipments/shp_8fc7dc5b18a9489086367f4e76016b3e/insure response: body: - string: '{"created_at": "2024-07-23T17:53:42Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:52:35Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid Access License number"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100110368066361872", "updated_at": "2024-07-23T17:53:43Z", "batch_id": + "9400100105807075742381", "updated_at": "2024-08-15T19:52:37Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_e367a8bdacc349f1aa99400ee0522aa9", "object": "CustomsInfo", "created_at": - "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", "contents_explanation": + "cstinfo_c7e6838e55aa4c0380bacfd1011adf6c", "object": "CustomsInfo", "created_at": + "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_9a7ad631dbb14255a0cd76209f3c4d76", - "object": "CustomsItem", "created_at": "2024-07-23T17:53:42Z", "updated_at": - "2024-07-23T17:53:42Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_79f2018825ef41a7a516fbab7842bb2d", + "object": "CustomsItem", "created_at": "2024-08-15T19:52:35Z", "updated_at": + "2024-08-15T19:52:35Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_7f98d03a491c11efa416ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:42+00:00", "name": + "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_638b6dd2ce5548ec85d67b255accfbd2", - "object": "Parcel", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_c6ad08dabc6541e787a4f5239f2dd21b", + "object": "Parcel", "created_at": "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_29c24685eef84a2e8540c4da72373ca6", - "created_at": "2024-07-23T17:53:43Z", "updated_at": "2024-07-23T17:53:43Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-07-23T17:53:43Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6832b1ef0dd64fb585df71704d6749ab", + "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:37Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:36Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e89d129a870fc84ffeaa8325ad6c2b40f7.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e81e02e001b2f741898a14150f135326d1.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f5af06c34647410c94997ff78cf3d5eb", "object": - "Rate", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + null}, "rates": [{"id": "rate_70ba914fbf544898885230f6a3415fa5", "object": + "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6f47529b84714dc88fb651a807aa6353", - "object": "Rate", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4e065fa607f94fe489a2ec1cd2b1a6a2", + "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "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_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bbe31567958340158fffe99976c707a1", - "object": "Rate", "created_at": "2024-07-23T17:53:42Z", "updated_at": "2024-07-23T17:53:42Z", + 2, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", + "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "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_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": + 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_bbe31567958340158fffe99976c707a1", "object": - "Rate", "created_at": "2024-07-23T17:53:43Z", "updated_at": "2024-07-23T17:53:43Z", + null, "selected_rate": {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", "object": + "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", "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_82fecc386f314823ad6b1a35365b7f4e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_094807d115c14008b09588e9a336d226", - "object": "Tracker", "mode": "test", "tracking_code": "9400100110368066361872", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-07-23T17:53:43Z", - "updated_at": "2024-07-23T17:53:43Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-07-23T17:53:43Z", "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", + 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_54131fb3d69d493e85b1cea4c2629a71", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742381", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:52:37Z", + "updated_at": "2024-08-15T19:52:37Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:52:37Z", "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-23T17:53:43Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:52:37Z", "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:30:43Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:29:37Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -469,9 +469,9 @@ interactions: {"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/djE6dHJrXzA5NDgwN2QxMTVjMTQwMDhiMDk1ODhlOWEzMzZkMjI2"}, - "to_address": {"id": "adr_7f960d15491c11efb81cac1f6bc539ae", "object": "Address", - "created_at": "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:43+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzU0MTMxZmIzZDY5ZDQ5M2U4NWIxY2VhNGMyNjI5YTcx"}, + "to_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -479,14 +479,14 @@ interactions: "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_7f98d03a491c11efa416ac1f6bc53342", "object": - "Address", "created_at": "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:42+00:00", + 4, "return_address": {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_7f960d15491c11efb81cac1f6bc539ae", "object": - "Address", "created_at": "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:43+00:00", + {}}, "buyer_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -498,7 +498,7 @@ interactions: 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_82fecc386f314823ad6b1a35365b7f4e", "object": "Shipment"}' + "id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -523,20 +523,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 47648423669fee27f40ba25a00528f1c + - 62c1f5dc66be5c85e788613b00170d03 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.267550' + - '0.272668' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -547,7 +547,7 @@ interactions: "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", "tracking_code": - "9400100110368066361872", "amount": "100.00"}' + "9400100105807075742381", "amount": "100.00"}' headers: Accept: - '*/*' @@ -567,19 +567,19 @@ interactions: uri: https://api.easypost.com/v2/claims response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/533eff379afa47759cdc14f19e190fc7.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4715d1ddc5e448ad924c029d8407b9e4.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/987f3e1a094044219e640163b1074ff7.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/a63833129b9d4853b8d127dde69e2f95.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/16a5632b3f10457d9a8fdfffa87f5cbd.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/3f96748d2e2540dd81be17a5c5197fa2.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:44", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-23T17:53:44"}], - "id": "clm_097eda66d06e42ec84449bbd34671a7d", "insurance_amount": "100.00", - "insurance_id": "ins_8d75d3dcf398461aaa330e48dbd4c19e", "mode": "test", "object": + "2024-08-15T19:52:37", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:37"}], + "id": "clm_0981ca2852bd429796bdb43115d70aa2", "insurance_amount": "100.00", + "insurance_id": "ins_99a199efd8b74ce1b2f75ea747e19a96", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", + "100.00", "salvage_value": null, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-23T17:53:44", "tracking_code": "9400100110368066361872", "type": - "damage", "updated_at": "2024-07-23T17:53:44"}' + "2024-08-15T19:52:37", "tracking_code": "9400100105807075742381", "type": + "damage", "updated_at": "2024-08-15T19:52:37"}' headers: cache-control: - private, no-cache, no-store @@ -604,20 +604,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 47648423669fee28f40ba25a00528f52 + - 62c1f5dc66be5c85e788613b00170d65 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.823459' + - '0.879516' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -641,24 +641,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/claims/clm_097eda66d06e42ec84449bbd34671a7d/cancel + uri: https://api.easypost.com/v2/claims/clm_0981ca2852bd429796bdb43115d70aa2/cancel response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/533eff379afa47759cdc14f19e190fc7.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4715d1ddc5e448ad924c029d8407b9e4.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/987f3e1a094044219e640163b1074ff7.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/a63833129b9d4853b8d127dde69e2f95.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/16a5632b3f10457d9a8fdfffa87f5cbd.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/3f96748d2e2540dd81be17a5c5197fa2.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:44", "description": "Test description", "history": [{"status": + "2024-08-15T19:52:37", "description": "Test description", "history": [{"status": "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": - "2024-07-23T17:53:45"}, {"status": "submitted", "status_detail": "Claim was - created.", "timestamp": "2024-07-23T17:53:44"}], "id": "clm_097eda66d06e42ec84449bbd34671a7d", - "insurance_amount": "100.00", "insurance_id": "ins_8d75d3dcf398461aaa330e48dbd4c19e", + "2024-08-15T19:52:39"}, {"status": "submitted", "status_detail": "Claim was + created.", "timestamp": "2024-08-15T19:52:37"}], "id": "clm_0981ca2852bd429796bdb43115d70aa2", + "insurance_amount": "100.00", "insurance_id": "ins_99a199efd8b74ce1b2f75ea747e19a96", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": - "shp_82fecc386f314823ad6b1a35365b7f4e", "status": "cancelled", "status_detail": - "Claim cancellation was requested.", "status_timestamp": "2024-07-23T17:53:45", - "tracking_code": "9400100110368066361872", "type": "damage", "updated_at": - "2024-07-23T17:53:45"}' + "shp_8fc7dc5b18a9489086367f4e76016b3e", "status": "cancelled", "status_detail": + "Claim cancellation was requested.", "status_timestamp": "2024-08-15T19:52:39", + "tracking_code": "9400100105807075742381", "type": "damage", "updated_at": + "2024-08-15T19:52:38"}' headers: cache-control: - private, no-cache, no-store @@ -683,20 +683,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 47648423669fee29f40ba25a00529016 + - 62c1f5dc66be5c86e788613b00170e7c x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.042985' + - '0.043569' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_create.yaml b/tests/cassettes/test_claim_create.yaml index 3c18f830..41c3c5e5 100644 --- a/tests/cassettes/test_claim_create.yaml +++ b/tests/cassettes/test_claim_create.yaml @@ -31,94 +31,94 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-07-23T17:53:34Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + string: '{"created_at": "2024-08-15T19:52:28Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid Access License number"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-07-23T17:53:34Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_cd7d8756bb1c462fb4497cc48a3e9a26", - "object": "CustomsInfo", "created_at": "2024-07-23T17:53:34Z", "updated_at": - "2024-07-23T17:53:34Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2024-08-15T19:52:28Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_1bd882d40d8145609cdcaac5af7e1f2b", + "object": "CustomsInfo", "created_at": "2024-08-15T19:52:28Z", "updated_at": + "2024-08-15T19:52:28Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_629ef3e844fd4e8f8b63a19a0e7d413f", "object": "CustomsItem", - "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + [{"id": "cstitem_4e47bb7096dc4b0882a356bf281754e5", "object": "CustomsItem", + "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_7ae4b187491c11efb529ac1f6bc539ae", "object": - "Address", "created_at": "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:34+00:00", + null}]}, "from_address": {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_cc4cec1b603649ba8dab40990c48b080", - "object": "Parcel", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_9a62580917e444488221b209b078fc2a", + "object": "Parcel", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_323b536e3901476c844419020d496965", - "object": "Rate", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53: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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2572bc64788d47aa8389a4e5d8a0e1b6", - "object": "Rate", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_1e972f21c5244406b7d4c0899cb1317a", + "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52: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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ec61cdb04bbf404e9724c18745a1493c", - "object": "Rate", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + 2, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", + "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52: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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": + 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8c175bf780334620aca5b3d5a24ffcf0", + "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_7ae1fcad491c11efb015ac1f6bc539aa", - "object": "Address", "created_at": "2024-07-23T17:53:34+00:00", "updated_at": - "2024-07-23T17:53:34+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": + "2024-08-15T19:52:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_7ae4b187491c11efb529ac1f6bc539ae", "object": "Address", "created_at": - "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:34+00:00", "name": + {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_7ae1fcad491c11efb015ac1f6bc539aa", "object": - "Address", "created_at": "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:34+00:00", + {}}, "buyer_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_d692021679d54c0c9da828499fb1a8de", + {}}, "forms": [], "fees": [], "id": "shp_51a3c4e20f394a308d398a9f76639c07", "object": "Shipment"}' headers: cache-control: @@ -130,7 +130,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_d692021679d54c0c9da828499fb1a8de + - /api/v2/shipments/shp_51a3c4e20f394a308d398a9f76639c07 pragma: - no-cache referrer-policy: @@ -141,32 +141,34 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 47648425669fee1ef40c2a10005285e1 + - 62c1f5d666be5c7ce7885e29001703f0 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - extlb2nuq b6e1b5034c x-runtime: - - '0.870562' + - '0.811888' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_ec61cdb04bbf404e9724c18745a1493c"}}' + body: '{"rate": {"id": "rate_ccb6df9318ee41cea574f06bc3db366d"}}' headers: Accept: - '*/*' @@ -183,100 +185,100 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_d692021679d54c0c9da828499fb1a8de/buy + uri: https://api.easypost.com/v2/shipments/shp_51a3c4e20f394a308d398a9f76639c07/buy response: body: - string: '{"created_at": "2024-07-23T17:53:34Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + string: '{"created_at": "2024-08-15T19:52:28Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid Access License number"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100110368066361827", "updated_at": "2024-07-23T17:53:35Z", "batch_id": + "9400100105807075742343", "updated_at": "2024-08-15T19:52:29Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_cd7d8756bb1c462fb4497cc48a3e9a26", "object": "CustomsInfo", "created_at": - "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", "contents_explanation": + "cstinfo_1bd882d40d8145609cdcaac5af7e1f2b", "object": "CustomsInfo", "created_at": + "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_629ef3e844fd4e8f8b63a19a0e7d413f", - "object": "CustomsItem", "created_at": "2024-07-23T17:53:34Z", "updated_at": - "2024-07-23T17:53:34Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_4e47bb7096dc4b0882a356bf281754e5", + "object": "CustomsItem", "created_at": "2024-08-15T19:52:28Z", "updated_at": + "2024-08-15T19:52:28Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_7ae4b187491c11efb529ac1f6bc539ae", "object": "Address", "created_at": - "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:34+00:00", "name": + "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_cc4cec1b603649ba8dab40990c48b080", - "object": "Parcel", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_9a62580917e444488221b209b078fc2a", + "object": "Parcel", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d5acf6e211c3407a88885e813c0b0977", - "created_at": "2024-07-23T17:53:35Z", "updated_at": "2024-07-23T17:53:35Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-07-23T17:53:35Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_872cafd0a1fe43e8b054f0b50ff2ffd9", + "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:29Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e887e526fb4a5c4354a3d78a0d7f54e942.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8b2420124f2af4dc5b42a932e0024fe0f.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_323b536e3901476c844419020d496965", "object": - "Rate", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53: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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2572bc64788d47aa8389a4e5d8a0e1b6", - "object": "Rate", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + null}, "rates": [{"id": "rate_1e972f21c5244406b7d4c0899cb1317a", "object": + "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52: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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ec61cdb04bbf404e9724c18745a1493c", - "object": "Rate", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + 2, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", + "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52: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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": + 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8c175bf780334620aca5b3d5a24ffcf0", + "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_ec61cdb04bbf404e9724c18745a1493c", "object": - "Rate", "created_at": "2024-07-23T17:53:35Z", "updated_at": "2024-07-23T17:53:35Z", + null, "selected_rate": {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", "object": + "Rate", "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", "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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_40df1d2c30a74d65b09c6fe5fb904cc0", - "object": "Tracker", "mode": "test", "tracking_code": "9400100110368066361827", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-07-23T17:53:35Z", - "updated_at": "2024-07-23T17:53:35Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", "carrier": "USPS", + 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_0d8953331dc048958fe9d879fc3c1b6b", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742343", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:29Z", + "updated_at": "2024-08-15T19:52:29Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzQwZGYxZDJjMzBhNzRkNjViMDljNmZlNWZiOTA0Y2Mw"}, - "to_address": {"id": "adr_7ae1fcad491c11efb015ac1f6bc539aa", "object": "Address", - "created_at": "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:35+00:00", + "https://track.easypost.com/djE6dHJrXzBkODk1MzMzMWRjMDQ4OTU4ZmU5ZDg3OWZjM2MxYjZi"}, + "to_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -284,14 +286,14 @@ interactions: "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_7ae4b187491c11efb529ac1f6bc539ae", "object": - "Address", "created_at": "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:34+00:00", + 4, "return_address": {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_7ae1fcad491c11efb015ac1f6bc539aa", "object": - "Address", "created_at": "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:35+00:00", + {}}, "buyer_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -301,7 +303,7 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_d692021679d54c0c9da828499fb1a8de", + "5.93000", "charged": true, "refunded": false}], "id": "shp_51a3c4e20f394a308d398a9f76639c07", "object": "Shipment"}' headers: cache-control: @@ -327,7 +329,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 47648425669fee1ff40c2a10005286cb + - 62c1f5d666be5c7ce7885e29001704db x-frame-options: - SAMEORIGIN x-node: @@ -335,12 +337,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.873316' + - '0.859000' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -364,103 +366,103 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_d692021679d54c0c9da828499fb1a8de/insure + uri: https://api.easypost.com/v2/shipments/shp_51a3c4e20f394a308d398a9f76639c07/insure response: body: - string: '{"created_at": "2024-07-23T17:53:34Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + string: '{"created_at": "2024-08-15T19:52:28Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid Access License number"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100110368066361827", "updated_at": "2024-07-23T17:53:35Z", "batch_id": + "9400100105807075742343", "updated_at": "2024-08-15T19:52:29Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_cd7d8756bb1c462fb4497cc48a3e9a26", "object": "CustomsInfo", "created_at": - "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", "contents_explanation": + "cstinfo_1bd882d40d8145609cdcaac5af7e1f2b", "object": "CustomsInfo", "created_at": + "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_629ef3e844fd4e8f8b63a19a0e7d413f", - "object": "CustomsItem", "created_at": "2024-07-23T17:53:34Z", "updated_at": - "2024-07-23T17:53:34Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_4e47bb7096dc4b0882a356bf281754e5", + "object": "CustomsItem", "created_at": "2024-08-15T19:52:28Z", "updated_at": + "2024-08-15T19:52:28Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_7ae4b187491c11efb529ac1f6bc539ae", "object": "Address", "created_at": - "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:34+00:00", "name": + "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_cc4cec1b603649ba8dab40990c48b080", - "object": "Parcel", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_9a62580917e444488221b209b078fc2a", + "object": "Parcel", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d5acf6e211c3407a88885e813c0b0977", - "created_at": "2024-07-23T17:53:35Z", "updated_at": "2024-07-23T17:53:35Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-07-23T17:53:35Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_872cafd0a1fe43e8b054f0b50ff2ffd9", + "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:29Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e887e526fb4a5c4354a3d78a0d7f54e942.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8b2420124f2af4dc5b42a932e0024fe0f.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_323b536e3901476c844419020d496965", "object": - "Rate", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53: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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2572bc64788d47aa8389a4e5d8a0e1b6", - "object": "Rate", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + null}, "rates": [{"id": "rate_1e972f21c5244406b7d4c0899cb1317a", "object": + "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52: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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ec61cdb04bbf404e9724c18745a1493c", - "object": "Rate", "created_at": "2024-07-23T17:53:34Z", "updated_at": "2024-07-23T17:53:34Z", + 2, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", + "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52: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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": + 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8c175bf780334620aca5b3d5a24ffcf0", + "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_ec61cdb04bbf404e9724c18745a1493c", "object": - "Rate", "created_at": "2024-07-23T17:53:35Z", "updated_at": "2024-07-23T17:53:35Z", + null, "selected_rate": {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", "object": + "Rate", "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", "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_d692021679d54c0c9da828499fb1a8de", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_40df1d2c30a74d65b09c6fe5fb904cc0", - "object": "Tracker", "mode": "test", "tracking_code": "9400100110368066361827", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-07-23T17:53:35Z", - "updated_at": "2024-07-23T17:53:35Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-07-23T17:53:35Z", "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", + 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_0d8953331dc048958fe9d879fc3c1b6b", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742343", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:52:29Z", + "updated_at": "2024-08-15T19:52:29Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:52:29Z", "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-23T17:53:35Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:52: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-24T06:30:35Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:29: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 @@ -469,9 +471,9 @@ interactions: {"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/djE6dHJrXzQwZGYxZDJjMzBhNzRkNjViMDljNmZlNWZiOTA0Y2Mw"}, - "to_address": {"id": "adr_7ae1fcad491c11efb015ac1f6bc539aa", "object": "Address", - "created_at": "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:35+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzBkODk1MzMzMWRjMDQ4OTU4ZmU5ZDg3OWZjM2MxYjZi"}, + "to_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -479,14 +481,14 @@ interactions: "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_7ae4b187491c11efb529ac1f6bc539ae", "object": - "Address", "created_at": "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:34+00:00", + 4, "return_address": {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_7ae1fcad491c11efb015ac1f6bc539aa", "object": - "Address", "created_at": "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:35+00:00", + {}}, "buyer_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -498,7 +500,7 @@ interactions: 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_d692021679d54c0c9da828499fb1a8de", "object": "Shipment"}' + "id": "shp_51a3c4e20f394a308d398a9f76639c07", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -523,20 +525,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 47648425669fee20f40c2a100052881a + - 62c1f5d666be5c7de7885e29001705c1 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.259690' + - '0.267915' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -547,7 +549,7 @@ interactions: "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", "tracking_code": - "9400100110368066361827", "amount": "100.00"}' + "9400100105807075742343", "amount": "100.00"}' headers: Accept: - '*/*' @@ -567,19 +569,19 @@ interactions: uri: https://api.easypost.com/v2/claims response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/836a3784a67e429ca0d30f10f64cb0bc.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/a1316f8afc5843d7b2d1370dfb7e73d3.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4d3502f6a6e64972913e43fc4191b4cd.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/cd4a4ca08f8c4fa1a57c1fbe6beb1879.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/ca160db21ac5455f9a865812e58b10d3.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/801e8c25392d4921a994888367961787.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:36", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-23T17:53:36"}], - "id": "clm_097eb623597146bab94e9ef701364d4f", "insurance_amount": "100.00", - "insurance_id": "ins_6aa59cf8618843c09b4707e1f3f74486", "mode": "test", "object": + "2024-08-15T19:52:30", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:30"}], + "id": "clm_09817b6b616a41929c00e7e6d9dd559c", "insurance_amount": "100.00", + "insurance_id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", + "100.00", "salvage_value": null, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-23T17:53:36", "tracking_code": "9400100110368066361827", "type": - "damage", "updated_at": "2024-07-23T17:53:36"}' + "2024-08-15T19:52:30", "tracking_code": "9400100105807075742343", "type": + "damage", "updated_at": "2024-08-15T19:52:30"}' headers: cache-control: - private, no-cache, no-store @@ -604,20 +606,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 47648425669fee20f40c2a1000528877 + - 62c1f5d666be5c7ee7885e290017061e x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.832179' + - '0.830272' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_get_next_page.yaml b/tests/cassettes/test_claim_get_next_page.yaml index e34f2dc0..3e78599d 100644 --- a/tests/cassettes/test_claim_get_next_page.yaml +++ b/tests/cassettes/test_claim_get_next_page.yaml @@ -16,7 +16,47 @@ interactions: uri: https://api.easypost.com/v2/claims?page_size=5 response: body: - string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7b9b0171ae7b4e258f765822e7cddb71.png", + string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/c362d4779c924f598e77e03b784a8562.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/438ff93724ed4756a2a19a5da91226dd.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/d81d826438e84c19b03d7b57d387526e.png"], + "check_delivery_address": null, "contact_email": "test@example.com", "created_at": + "2024-08-15T19:52:33", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:33"}], + "id": "clm_09816458dd9d483ba94edbde30104139", "insurance_amount": "100.00", + "insurance_id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "mode": "test", "object": + "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": + "100.00", "salvage_value": null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", + "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": + "2024-08-15T19:52:33", "tracking_code": "9400100105807075742367", "type": + "damage", "updated_at": "2024-08-15T19:52:33"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/cd4a4ca08f8c4fa1a57c1fbe6beb1879.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/ca160db21ac5455f9a865812e58b10d3.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/801e8c25392d4921a994888367961787.png"], + "check_delivery_address": null, "contact_email": "test@example.com", "created_at": + "2024-08-15T19:52:30", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:30"}], + "id": "clm_09817b6b616a41929c00e7e6d9dd559c", "insurance_amount": "100.00", + "insurance_id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "mode": "test", "object": + "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": + "100.00", "salvage_value": null, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", + "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": + "2024-08-15T19:52:30", "tracking_code": "9400100105807075742343", "type": + "damage", "updated_at": "2024-08-15T19:52:30"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/533eff379afa47759cdc14f19e190fc7.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4715d1ddc5e448ad924c029d8407b9e4.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/987f3e1a094044219e640163b1074ff7.png"], + "check_delivery_address": null, "contact_email": "test@example.com", "created_at": + "2024-07-23T17:53:44", "description": "Test description", "history": [{"status": + "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": + "2024-07-23T17:53:45"}, {"status": "submitted", "status_detail": "Claim was + created.", "timestamp": "2024-07-23T17:53:44"}], "id": "clm_097eda66d06e42ec84449bbd34671a7d", + "insurance_amount": "100.00", "insurance_id": "ins_8d75d3dcf398461aaa330e48dbd4c19e", + "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": + null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": + "shp_82fecc386f314823ad6b1a35365b7f4e", "status": "cancelled", "status_detail": + "Claim cancellation was requested.", "status_timestamp": "2024-07-23T17:53:45", + "tracking_code": "9400100110368066361872", "type": "damage", "updated_at": + "2024-07-23T17:53:45"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7b9b0171ae7b4e258f765822e7cddb71.png", "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2cd9fdd33a7d40fc84ac8f87c3da1f86.png", "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/d3aebbc42e884769ad810c92c26ad8ad.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": @@ -41,47 +81,7 @@ interactions: "100.00", "salvage_value": null, "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": "2024-07-23T17:53:36", "tracking_code": "9400100110368066361827", "type": - "damage", "updated_at": "2024-07-23T17:53:36"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7280de6a4ce249e6af34cfd8fc2c8613.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9faca9b590ed4616aaa385e717969828.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/5c641ae1e5a54a53ab6ded433ebfabdc.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:10:33", "description": "Test description", "history": [{"status": - "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": - "2024-07-23T17:12:03"}, {"status": "submitted", "status_detail": "Claim was - created.", "timestamp": "2024-07-23T17:10:33"}], "id": "clm_097e39b748d24c32a0bd61840fc0763f", - "insurance_amount": "249.99", "insurance_id": "ins_d15880e5772c4373aec497744fa4da54", - "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": - null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": - "shp_09a808dae97442f3aa7fbd994a3533d4", "status": "cancelled", "status_detail": - "Claim cancellation was requested.", "status_timestamp": "2024-07-23T17:12:03", - "tracking_code": "9470100110368066351889", "type": "damage", "updated_at": - "2024-07-23T17:12:03"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d0c4ff3d71c4f5d8ec5c21bcfeaf419.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/8f78018b1c6941cdafd1ca9d36579e40.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/973d2a48b6b04423b1d112dff79e85e3.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T20:47:51", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T20:47:51"}], - "id": "clm_097ed32c795141499bb0a5e17a4fe24f", "insurance_amount": "249.99", - "insurance_id": "ins_fa5c89fcf765494b921a96c4e4004476", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_5bcff1867a1f4a29a67db9a84a2082c5", - "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-22T20:47:51", "tracking_code": "9434600110368065978707", "type": - "damage", "updated_at": "2024-07-22T20:47:51"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d0c4ff3d71c4f5d8ec5c21bcfeaf419.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/8f78018b1c6941cdafd1ca9d36579e40.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/973d2a48b6b04423b1d112dff79e85e3.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T20:47:51", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T20:47:51"}], - "id": "clm_097ed32c795141499bb0a5e17a4fe24f", "insurance_amount": "249.99", - "insurance_id": "ins_fa5c89fcf765494b921a96c4e4004476", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_5bcff1867a1f4a29a67db9a84a2082c5", - "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-22T20:47:51", "tracking_code": "9434600110368065978707", "type": - "damage", "updated_at": "2024-07-22T20:47:51"}], "has_more": true}' + "damage", "updated_at": "2024-07-23T17:53:36"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store @@ -106,20 +106,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 4764841f669fee25f3f51d6000528d1b + - 62c1f5d866be5c83e7885e2c00170aca x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.053317' + - '0.050227' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -139,10 +139,50 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/claims?before_id=clm_097ed32c795141499bb0a5e17a4fe24f&page_size=5 + uri: https://api.easypost.com/v2/claims?before_id=clm_097eb623597146bab94e9ef701364d4f&page_size=5 response: body: - string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/5b940a68e4a5493e8d5ae50c79ead964.png", + string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7280de6a4ce249e6af34cfd8fc2c8613.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9faca9b590ed4616aaa385e717969828.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/5c641ae1e5a54a53ab6ded433ebfabdc.png"], + "check_delivery_address": null, "contact_email": "test@example.com", "created_at": + "2024-07-23T17:10:33", "description": "Test description", "history": [{"status": + "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": + "2024-07-23T17:12:03"}, {"status": "submitted", "status_detail": "Claim was + created.", "timestamp": "2024-07-23T17:10:33"}], "id": "clm_097e39b748d24c32a0bd61840fc0763f", + "insurance_amount": "249.99", "insurance_id": "ins_d15880e5772c4373aec497744fa4da54", + "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": + null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": + "shp_09a808dae97442f3aa7fbd994a3533d4", "status": "cancelled", "status_detail": + "Claim cancellation was requested.", "status_timestamp": "2024-07-23T17:12:03", + "tracking_code": "9470100110368066351889", "type": "damage", "updated_at": + "2024-07-23T17:12:03"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d0c4ff3d71c4f5d8ec5c21bcfeaf419.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/8f78018b1c6941cdafd1ca9d36579e40.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/973d2a48b6b04423b1d112dff79e85e3.png"], + "check_delivery_address": null, "contact_email": "test@example.com", "created_at": + "2024-07-22T20:47:51", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T20:47:51"}], + "id": "clm_097ed32c795141499bb0a5e17a4fe24f", "insurance_amount": "249.99", + "insurance_id": "ins_fa5c89fcf765494b921a96c4e4004476", "mode": "test", "object": + "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": + "100.00", "salvage_value": null, "shipment_id": "shp_5bcff1867a1f4a29a67db9a84a2082c5", + "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": + "2024-07-22T20:47:51", "tracking_code": "9434600110368065978707", "type": + "damage", "updated_at": "2024-07-22T20:47:51"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d0c4ff3d71c4f5d8ec5c21bcfeaf419.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/8f78018b1c6941cdafd1ca9d36579e40.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/973d2a48b6b04423b1d112dff79e85e3.png"], + "check_delivery_address": null, "contact_email": "test@example.com", "created_at": + "2024-07-22T20:47:51", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T20:47:51"}], + "id": "clm_097ed32c795141499bb0a5e17a4fe24f", "insurance_amount": "249.99", + "insurance_id": "ins_fa5c89fcf765494b921a96c4e4004476", "mode": "test", "object": + "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": + "100.00", "salvage_value": null, "shipment_id": "shp_5bcff1867a1f4a29a67db9a84a2082c5", + "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": + "2024-07-22T20:47:51", "tracking_code": "9434600110368065978707", "type": + "damage", "updated_at": "2024-07-22T20:47:51"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/5b940a68e4a5493e8d5ae50c79ead964.png", "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2a238f773957479199496ee7633187b8.png", "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0281745ca44e4c88a632f9534c2c709d.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": @@ -165,53 +205,13 @@ interactions: "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": null, "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": "2024-07-22T18:44:23", - "tracking_code": "EZ1000000001", "type": "damage", "updated_at": "2024-07-22T18:44:23"}, - {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/6a130e0b3b8843219e47f80843efcce9.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1fa2701e863546a58eb58cf9dc5f6d49.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/b29a5ab5b35346759ed2c29416cc20f2.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T16:32:17", "description": "Test description", "history": [{"status": - "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": - "2024-07-22T16:32:19"}, {"status": "submitted", "status_detail": "Claim was - created.", "timestamp": "2024-07-22T16:32:17"}], "id": "clm_097e808661fb4cc4b4ac46398a8ad518", - "insurance_amount": "100.00", "insurance_id": "ins_1a8fe50291ec4863984ca525ffe4a91c", - "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": - null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": - "shp_d97b685262564a868a1590d9e2ffb135", "status": "cancelled", "status_detail": - "Claim cancellation was requested.", "status_timestamp": "2024-07-22T16:32:19", - "tracking_code": "9400100110368065903004", "type": "damage", "updated_at": - "2024-07-22T16:32:18"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/6a130e0b3b8843219e47f80843efcce9.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1fa2701e863546a58eb58cf9dc5f6d49.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/b29a5ab5b35346759ed2c29416cc20f2.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T16:32:17", "description": "Test description", "history": [{"status": - "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": - "2024-07-22T16:32:19"}, {"status": "submitted", "status_detail": "Claim was - created.", "timestamp": "2024-07-22T16:32:17"}], "id": "clm_097e808661fb4cc4b4ac46398a8ad518", - "insurance_amount": "100.00", "insurance_id": "ins_1a8fe50291ec4863984ca525ffe4a91c", - "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": - null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": - "shp_d97b685262564a868a1590d9e2ffb135", "status": "cancelled", "status_detail": - "Claim cancellation was requested.", "status_timestamp": "2024-07-22T16:32:19", - "tracking_code": "9400100110368065903004", "type": "damage", "updated_at": - "2024-07-22T16:32:18"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240719/eb92a18cf4af448a8579205cb66d6f0e.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240719/7a478fb2bba54c2ebedf646f407c727e.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240719/d73c07b94055482e8ecd28e639c27f16.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-19T16:41:18", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-19T16:41:18"}], - "id": "clm_097d4ac66cf34e2796582f93e38d4391", "insurance_amount": "202.00", - "insurance_id": "ins_71819f699e1945d7b8c4391ec2369105", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_047b530addde44df8e783d49daa640dc", - "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-19T16:41:18", "tracking_code": "9405500110368064043766", "type": - "damage", "updated_at": "2024-07-19T16:41:18"}], "has_more": true}' + "tracking_code": "EZ1000000001", "type": "damage", "updated_at": "2024-07-22T18:44:23"}], + "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '5744' + - '5620' content-type: - application/json; charset=utf-8 expires: @@ -226,25 +226,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 4764841f669fee25f3f51d6000528d34 + - 62c1f5d866be5c83e7885e2c00170aef x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - extlb2nuq b6e1b5034c x-runtime: - - '0.057857' + - '0.054210' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_retrieve.yaml b/tests/cassettes/test_claim_retrieve.yaml index 6899c5a7..8934cdea 100644 --- a/tests/cassettes/test_claim_retrieve.yaml +++ b/tests/cassettes/test_claim_retrieve.yaml @@ -31,8 +31,12 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-07-23T17:53:37Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + string: '{"created_at": "2024-08-15T19:52:31Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -42,83 +46,79 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid Access License number"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-07-23T17:53:38Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_cb84e72ba6024be28ce53aaa6ebf4b90", - "object": "CustomsInfo", "created_at": "2024-07-23T17:53:37Z", "updated_at": - "2024-07-23T17:53:37Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2024-08-15T19:52:32Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_63b0fc0d7fce4b6d9176c82974fa8a0e", + "object": "CustomsInfo", "created_at": "2024-08-15T19:52:31Z", "updated_at": + "2024-08-15T19:52:31Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_7aac30723e7140e59ca169984646fd6e", "object": "CustomsItem", - "created_at": "2024-07-23T17:53:37Z", "updated_at": "2024-07-23T17:53:37Z", + [{"id": "cstitem_e8e2ff889f1f4ecba7443486f5e560a0", "object": "CustomsItem", + "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_7d0d0fd8491c11efa2a9ac1f6bc53342", "object": - "Address", "created_at": "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:37+00:00", + null}]}, "from_address": {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b3606916731c48cbb7a1601d5c2452bf", - "object": "Parcel", "created_at": "2024-07-23T17:53:37Z", "updated_at": "2024-07-23T17:53:37Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_aedcc5f27422411a97e32968e988ad07", + "object": "Parcel", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_49ba5166623649699e55e33c464e058f", - "object": "Rate", "created_at": "2024-07-23T17:53:38Z", "updated_at": "2024-07-23T17:53:38Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_037cb76299c84c54904f046ff477d8de", - "object": "Rate", "created_at": "2024-07-23T17:53:38Z", "updated_at": "2024-07-23T17:53:38Z", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_f149259c37ce4e76a279042b6b4d368d", + "object": "Rate", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "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_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_058244a3b26240f19927dbe382843161", - "object": "Rate", "created_at": "2024-07-23T17:53:38Z", "updated_at": "2024-07-23T17:53:38Z", + 2, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", + "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", "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_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": + 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37b2dec5f536484d90d2d79916f30836", + "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_7d0ab012491c11ef98423cecef1b359e", - "object": "Address", "created_at": "2024-07-23T17:53:37+00:00", "updated_at": - "2024-07-23T17:53:37+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": + "2024-08-15T19:52:31+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_7d0d0fd8491c11efa2a9ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:37+00:00", "name": + {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_7d0ab012491c11ef98423cecef1b359e", "object": - "Address", "created_at": "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:37+00:00", + {}}, "buyer_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", + {}}, "forms": [], "fees": [], "id": "shp_3f3863c35045497db77b14187b65f824", "object": "Shipment"}' headers: cache-control: @@ -130,7 +130,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_8ae4d3d1cf78409fbabd93c5b13c5f98 + - /api/v2/shipments/shp_3f3863c35045497db77b14187b65f824 pragma: - no-cache referrer-policy: @@ -146,27 +146,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 6558653e669fee21f42f358e00532b0d + - 62c1f5dc66be5c7fe7885e2a0017072a x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.844359' + - '0.738831' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_058244a3b26240f19927dbe382843161"}}' + body: '{"rate": {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514"}}' headers: Accept: - '*/*' @@ -183,11 +183,15 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_8ae4d3d1cf78409fbabd93c5b13c5f98/buy + uri: https://api.easypost.com/v2/shipments/shp_3f3863c35045497db77b14187b65f824/buy response: body: - string: '{"created_at": "2024-07-23T17:53:37Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + string: '{"created_at": "2024-08-15T19:52:31Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -197,86 +201,82 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid Access License number"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100110368066361841", "updated_at": "2024-07-23T17:53:39Z", "batch_id": + "9400100105807075742367", "updated_at": "2024-08-15T19:52:32Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_cb84e72ba6024be28ce53aaa6ebf4b90", "object": "CustomsInfo", "created_at": - "2024-07-23T17:53:37Z", "updated_at": "2024-07-23T17:53:37Z", "contents_explanation": + "cstinfo_63b0fc0d7fce4b6d9176c82974fa8a0e", "object": "CustomsInfo", "created_at": + "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_7aac30723e7140e59ca169984646fd6e", - "object": "CustomsItem", "created_at": "2024-07-23T17:53:37Z", "updated_at": - "2024-07-23T17:53:37Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_e8e2ff889f1f4ecba7443486f5e560a0", + "object": "CustomsItem", "created_at": "2024-08-15T19:52:31Z", "updated_at": + "2024-08-15T19:52:31Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_7d0d0fd8491c11efa2a9ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:37+00:00", "name": + "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b3606916731c48cbb7a1601d5c2452bf", - "object": "Parcel", "created_at": "2024-07-23T17:53:37Z", "updated_at": "2024-07-23T17:53:37Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_aedcc5f27422411a97e32968e988ad07", + "object": "Parcel", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_1f1920b4945f4bd0a4bd4238b33b7a28", - "created_at": "2024-07-23T17:53:39Z", "updated_at": "2024-07-23T17:53:39Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-07-23T17:53:39Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_3efd1f5493c949bbbc1c94a3c182facf", + "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:32Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e891a90c2cd34d4f99b06c274eb20fa007.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e894723fdef038491185a1e89b45134cc2.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_49ba5166623649699e55e33c464e058f", "object": - "Rate", "created_at": "2024-07-23T17:53:38Z", "updated_at": "2024-07-23T17:53:38Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_037cb76299c84c54904f046ff477d8de", - "object": "Rate", "created_at": "2024-07-23T17:53:38Z", "updated_at": "2024-07-23T17:53:38Z", + null}, "rates": [{"id": "rate_f149259c37ce4e76a279042b6b4d368d", "object": + "Rate", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "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_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_058244a3b26240f19927dbe382843161", - "object": "Rate", "created_at": "2024-07-23T17:53:38Z", "updated_at": "2024-07-23T17:53:38Z", + 2, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", + "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", "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_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": + 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37b2dec5f536484d90d2d79916f30836", + "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_058244a3b26240f19927dbe382843161", "object": - "Rate", "created_at": "2024-07-23T17:53:39Z", "updated_at": "2024-07-23T17:53:39Z", + null, "selected_rate": {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", "object": + "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", "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_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_50a3f6c393cf407cb7e82a16e753f932", - "object": "Tracker", "mode": "test", "tracking_code": "9400100110368066361841", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-07-23T17:53:39Z", - "updated_at": "2024-07-23T17:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier": "USPS", + 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_393a646a6cae4372b2bbda8e63441cc9", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742367", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:33Z", + "updated_at": "2024-08-15T19:52:33Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzUwYTNmNmMzOTNjZjQwN2NiN2U4MmExNmU3NTNmOTMy"}, - "to_address": {"id": "adr_7d0ab012491c11ef98423cecef1b359e", "object": "Address", - "created_at": "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:38+00:00", + "https://track.easypost.com/djE6dHJrXzM5M2E2NDZhNmNhZTQzNzJiMmJiZGE4ZTYzNDQxY2M5"}, + "to_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -284,14 +284,14 @@ interactions: "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_7d0d0fd8491c11efa2a9ac1f6bc53342", "object": - "Address", "created_at": "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:37+00:00", + 4, "return_address": {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_7d0ab012491c11ef98423cecef1b359e", "object": - "Address", "created_at": "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:38+00:00", + {}}, "buyer_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -301,7 +301,7 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", + "5.93000", "charged": true, "refunded": false}], "id": "shp_3f3863c35045497db77b14187b65f824", "object": "Shipment"}' headers: cache-control: @@ -327,20 +327,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 6558653e669fee22f42f358e00532c25 + - 62c1f5dc66be5c80e7885e2a001707f9 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb3nuq c0f5e722d1 - - extlb2nuq fa152d4755 + - extlb2nuq b6e1b5034c x-runtime: - - '1.035889' + - '0.929695' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -364,11 +364,15 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_8ae4d3d1cf78409fbabd93c5b13c5f98/insure + uri: https://api.easypost.com/v2/shipments/shp_3f3863c35045497db77b14187b65f824/insure response: body: - string: '{"created_at": "2024-07-23T17:53:37Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + string: '{"created_at": "2024-08-15T19:52:31Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -378,89 +382,85 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid Access License number"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100110368066361841", "updated_at": "2024-07-23T17:53:39Z", "batch_id": + "9400100105807075742367", "updated_at": "2024-08-15T19:52:32Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_cb84e72ba6024be28ce53aaa6ebf4b90", "object": "CustomsInfo", "created_at": - "2024-07-23T17:53:37Z", "updated_at": "2024-07-23T17:53:37Z", "contents_explanation": + "cstinfo_63b0fc0d7fce4b6d9176c82974fa8a0e", "object": "CustomsInfo", "created_at": + "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_7aac30723e7140e59ca169984646fd6e", - "object": "CustomsItem", "created_at": "2024-07-23T17:53:37Z", "updated_at": - "2024-07-23T17:53:37Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_e8e2ff889f1f4ecba7443486f5e560a0", + "object": "CustomsItem", "created_at": "2024-08-15T19:52:31Z", "updated_at": + "2024-08-15T19:52:31Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_7d0d0fd8491c11efa2a9ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:37+00:00", "name": + "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_b3606916731c48cbb7a1601d5c2452bf", - "object": "Parcel", "created_at": "2024-07-23T17:53:37Z", "updated_at": "2024-07-23T17:53:37Z", + {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_aedcc5f27422411a97e32968e988ad07", + "object": "Parcel", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_1f1920b4945f4bd0a4bd4238b33b7a28", - "created_at": "2024-07-23T17:53:39Z", "updated_at": "2024-07-23T17:53:39Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-07-23T17:53:39Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_3efd1f5493c949bbbc1c94a3c182facf", + "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:32Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e891a90c2cd34d4f99b06c274eb20fa007.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e894723fdef038491185a1e89b45134cc2.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_49ba5166623649699e55e33c464e058f", "object": - "Rate", "created_at": "2024-07-23T17:53:38Z", "updated_at": "2024-07-23T17:53:38Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_037cb76299c84c54904f046ff477d8de", - "object": "Rate", "created_at": "2024-07-23T17:53:38Z", "updated_at": "2024-07-23T17:53:38Z", + null}, "rates": [{"id": "rate_f149259c37ce4e76a279042b6b4d368d", "object": + "Rate", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "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_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_058244a3b26240f19927dbe382843161", - "object": "Rate", "created_at": "2024-07-23T17:53:38Z", "updated_at": "2024-07-23T17:53:38Z", + 2, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", + "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", "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_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": + 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37b2dec5f536484d90d2d79916f30836", + "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_058244a3b26240f19927dbe382843161", "object": - "Rate", "created_at": "2024-07-23T17:53:39Z", "updated_at": "2024-07-23T17:53:39Z", + null, "selected_rate": {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", "object": + "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", "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_8ae4d3d1cf78409fbabd93c5b13c5f98", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_50a3f6c393cf407cb7e82a16e753f932", - "object": "Tracker", "mode": "test", "tracking_code": "9400100110368066361841", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-07-23T17:53:39Z", - "updated_at": "2024-07-23T17:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-07-23T17:53:39Z", "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", + 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_393a646a6cae4372b2bbda8e63441cc9", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742367", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:52:33Z", + "updated_at": "2024-08-15T19:52:33Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:52:33Z", "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-23T17:53:39Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:52:33Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-24T06:30:39Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:29:33Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -469,9 +469,9 @@ interactions: {"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/djE6dHJrXzUwYTNmNmMzOTNjZjQwN2NiN2U4MmExNmU3NTNmOTMy"}, - "to_address": {"id": "adr_7d0ab012491c11ef98423cecef1b359e", "object": "Address", - "created_at": "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:38+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzM5M2E2NDZhNmNhZTQzNzJiMmJiZGE4ZTYzNDQxY2M5"}, + "to_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -479,14 +479,14 @@ interactions: "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_7d0d0fd8491c11efa2a9ac1f6bc53342", "object": - "Address", "created_at": "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:37+00:00", + 4, "return_address": {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_7d0ab012491c11ef98423cecef1b359e", "object": - "Address", "created_at": "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:38+00:00", + {}}, "buyer_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -498,7 +498,7 @@ interactions: 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_8ae4d3d1cf78409fbabd93c5b13c5f98", "object": "Shipment"}' + "id": "shp_3f3863c35045497db77b14187b65f824", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -523,20 +523,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 6558653e669fee23f42f358e00532d68 + - 62c1f5dc66be5c81e7885e2a001708ed x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.274140' + - '0.306838' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -547,7 +547,7 @@ interactions: "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", "tracking_code": - "9400100110368066361841", "amount": "100.00"}' + "9400100105807075742367", "amount": "100.00"}' headers: Accept: - '*/*' @@ -567,19 +567,19 @@ interactions: uri: https://api.easypost.com/v2/claims response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7b9b0171ae7b4e258f765822e7cddb71.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2cd9fdd33a7d40fc84ac8f87c3da1f86.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/d3aebbc42e884769ad810c92c26ad8ad.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/c362d4779c924f598e77e03b784a8562.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/438ff93724ed4756a2a19a5da91226dd.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/d81d826438e84c19b03d7b57d387526e.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:40", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-23T17:53:40"}], - "id": "clm_097e86d630e44e83b736c48c1271fed3", "insurance_amount": "100.00", - "insurance_id": "ins_33a9255ab9f443c18a1c1876bc6e25a4", "mode": "test", "object": + "2024-08-15T19:52:33", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:33"}], + "id": "clm_09816458dd9d483ba94edbde30104139", "insurance_amount": "100.00", + "insurance_id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", + "100.00", "salvage_value": null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-23T17:53:40", "tracking_code": "9400100110368066361841", "type": - "damage", "updated_at": "2024-07-23T17:53:40"}' + "2024-08-15T19:52:33", "tracking_code": "9400100105807075742367", "type": + "damage", "updated_at": "2024-08-15T19:52:33"}' headers: cache-control: - private, no-cache, no-store @@ -604,20 +604,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 6558653e669fee24f42f358e00532dbd + - 62c1f5dc66be5c81e7885e2a00170944 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb4nuq c0f5e722d1 - - extlb2nuq fa152d4755 + - extlb2nuq b6e1b5034c x-runtime: - - '0.844779' + - '0.847946' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -637,22 +637,22 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/claims/clm_097e86d630e44e83b736c48c1271fed3 + uri: https://api.easypost.com/v2/claims/clm_09816458dd9d483ba94edbde30104139 response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7b9b0171ae7b4e258f765822e7cddb71.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2cd9fdd33a7d40fc84ac8f87c3da1f86.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/d3aebbc42e884769ad810c92c26ad8ad.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/c362d4779c924f598e77e03b784a8562.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/438ff93724ed4756a2a19a5da91226dd.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/d81d826438e84c19b03d7b57d387526e.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:40", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-23T17:53:40"}], - "id": "clm_097e86d630e44e83b736c48c1271fed3", "insurance_amount": "100.00", - "insurance_id": "ins_33a9255ab9f443c18a1c1876bc6e25a4", "mode": "test", "object": + "2024-08-15T19:52:33", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:33"}], + "id": "clm_09816458dd9d483ba94edbde30104139", "insurance_amount": "100.00", + "insurance_id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", + "100.00", "salvage_value": null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-23T17:53:40", "tracking_code": "9400100110368066361841", "type": - "damage", "updated_at": "2024-07-23T17:53:40"}' + "2024-08-15T19:52:33", "tracking_code": "9400100105807075742367", "type": + "damage", "updated_at": "2024-08-15T19:52:33"}' headers: cache-control: - private, no-cache, no-store @@ -677,20 +677,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 6558653e669fee24f42f358e00532ec8 + - 62c1f5dc66be5c82e7885e2a00170a2a x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.035588' + - '0.040694' x-version-label: - - easypost-202407231702-040a3c7b8f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_info_create.yaml b/tests/cassettes/test_customs_info_create.yaml index 10381775..3248dda6 100644 --- a/tests/cassettes/test_customs_info_create.yaml +++ b/tests/cassettes/test_customs_info_create.yaml @@ -24,14 +24,14 @@ interactions: uri: https://api.easypost.com/v2/customs_infos response: body: - string: '{"id": "cstinfo_8af50d7ac9274d88bb7056a198dd6d7f", "object": "CustomsInfo", - "created_at": "2023-05-12T21:27:53Z", "updated_at": "2023-05-12T21:27:53Z", + string: '{"id": "cstinfo_316b0f0140364345a5e5b5a72308eff1", "object": "CustomsInfo", + "created_at": "2024-08-15T19:52:38Z", "updated_at": "2024-08-15T19:52:38Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_eb8b3ea1a7014262a050cf6cd09e0755", - "object": "CustomsItem", "created_at": "2023-05-12T21:27:53Z", "updated_at": - "2023-05-12T21:27:53Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_db2112a2507240be8f65da42822a10ae", + "object": "CustomsItem", "created_at": "2024-08-15T19:52:38Z", "updated_at": + "2024-08-15T19:52:38Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}' @@ -42,12 +42,10 @@ interactions: - '794' content-type: - application/json; charset=utf-8 - etag: - - W/"8f1a1b8b56fd5ba3f20a1980b84f3e06" expires: - '0' location: - - /api/v2/customs_infos/cstinfo_8af50d7ac9274d88bb7056a198dd6d7f + - /api/v2/customs_infos/cstinfo_316b0f0140364345a5e5b5a72308eff1 pragma: - no-cache referrer-policy: @@ -63,21 +61,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - cdb1f66a645eaf59e2aac6be00020c73 + - 62c1f5d866be5c86e788613c00170ecf x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.030852' + - '0.049551' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_info_retrieve.yaml b/tests/cassettes/test_customs_info_retrieve.yaml index a2ecbb1f..b9ab9a18 100644 --- a/tests/cassettes/test_customs_info_retrieve.yaml +++ b/tests/cassettes/test_customs_info_retrieve.yaml @@ -24,14 +24,14 @@ interactions: uri: https://api.easypost.com/v2/customs_infos response: body: - string: '{"id": "cstinfo_174597bae5c04e9cba4d39caca585628", "object": "CustomsInfo", - "created_at": "2023-05-12T21:27:54Z", "updated_at": "2023-05-12T21:27:54Z", + string: '{"id": "cstinfo_b116875618ab4d9ea9831fd47378af88", "object": "CustomsInfo", + "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_bdd9c864a16740b2a67866098bc8c83d", - "object": "CustomsItem", "created_at": "2023-05-12T21:27:54Z", "updated_at": - "2023-05-12T21:27:54Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_00ee149af2b94c43a517e874b5eb21b3", + "object": "CustomsItem", "created_at": "2024-08-15T19:52:39Z", "updated_at": + "2024-08-15T19:52:39Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}' @@ -42,12 +42,10 @@ interactions: - '794' content-type: - application/json; charset=utf-8 - etag: - - W/"e27368c5f4c1925b9051a59082a32b9e" expires: - '0' location: - - /api/v2/customs_infos/cstinfo_174597bae5c04e9cba4d39caca585628 + - /api/v2/customs_infos/cstinfo_b116875618ab4d9ea9831fd47378af88 pragma: - no-cache referrer-policy: @@ -63,21 +61,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - cdb1f667645eaf59e2aac6bf00020c99 + - 62c1f5db66be5c87e788613d00170f16 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.037906' + - '0.042017' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -97,17 +94,17 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/customs_infos/cstinfo_174597bae5c04e9cba4d39caca585628 + uri: https://api.easypost.com/v2/customs_infos/cstinfo_b116875618ab4d9ea9831fd47378af88 response: body: - string: '{"id": "cstinfo_174597bae5c04e9cba4d39caca585628", "object": "CustomsInfo", - "created_at": "2023-05-12T21:27:54Z", "updated_at": "2023-05-12T21:27:54Z", + string: '{"id": "cstinfo_b116875618ab4d9ea9831fd47378af88", "object": "CustomsInfo", + "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_bdd9c864a16740b2a67866098bc8c83d", - "object": "CustomsItem", "created_at": "2023-05-12T21:27:54Z", "updated_at": - "2023-05-12T21:27:54Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_00ee149af2b94c43a517e874b5eb21b3", + "object": "CustomsItem", "created_at": "2024-08-15T19:52:39Z", "updated_at": + "2024-08-15T19:52:39Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}' @@ -118,8 +115,6 @@ interactions: - '794' content-type: - application/json; charset=utf-8 - etag: - - W/"e27368c5f4c1925b9051a59082a32b9e" expires: - '0' pragma: @@ -137,21 +132,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - cdb1f667645eaf5ae2aac6bf00020ca7 + - 62c1f5db66be5c87e788613d00170f32 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.076913' + - '0.026357' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_item_create.yaml b/tests/cassettes/test_customs_item_create.yaml index f7c39600..58d619a6 100644 --- a/tests/cassettes/test_customs_item_create.yaml +++ b/tests/cassettes/test_customs_item_create.yaml @@ -21,8 +21,8 @@ interactions: uri: https://api.easypost.com/v2/customs_items response: body: - string: '{"id": "cstitem_efce3e12f1884baaa4c7d79085b019c0", "object": "CustomsItem", - "created_at": "2023-05-12T21:27:54Z", "updated_at": "2023-05-12T21:27:54Z", + string: '{"id": "cstitem_1d73814f028d441cab05856c9e47a8dd", "object": "CustomsItem", + "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": @@ -34,12 +34,10 @@ interactions: - '376' content-type: - application/json; charset=utf-8 - etag: - - W/"d14afb975b9547d9fd4b30363555abc3" expires: - '0' location: - - /api/v2/customs_items/cstitem_efce3e12f1884baaa4c7d79085b019c0 + - /api/v2/customs_items/cstitem_1d73814f028d441cab05856c9e47a8dd pragma: - no-cache referrer-policy: @@ -55,20 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b54645eaf5ae2aac6c0000f8eee + - 62c1f5d966be5c87e788613e00170f6f x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.026901' + - '0.034319' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_item_retrieve.yaml b/tests/cassettes/test_customs_item_retrieve.yaml index 284d93b4..4de9b2e2 100644 --- a/tests/cassettes/test_customs_item_retrieve.yaml +++ b/tests/cassettes/test_customs_item_retrieve.yaml @@ -21,8 +21,8 @@ interactions: uri: https://api.easypost.com/v2/customs_items response: body: - string: '{"id": "cstitem_07988de34f094d4bb89b50f3c0b5fe0d", "object": "CustomsItem", - "created_at": "2023-05-12T21:27:54Z", "updated_at": "2023-05-12T21:27:54Z", + string: '{"id": "cstitem_f69c399844294c5d8f2783fb0f4cf759", "object": "CustomsItem", + "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": @@ -34,12 +34,10 @@ interactions: - '376' content-type: - application/json; charset=utf-8 - etag: - - W/"1f31e2d103ff414109cc7121e547eb38" expires: - '0' location: - - /api/v2/customs_items/cstitem_07988de34f094d4bb89b50f3c0b5fe0d + - /api/v2/customs_items/cstitem_f69c399844294c5d8f2783fb0f4cf759 pragma: - no-cache referrer-policy: @@ -50,25 +48,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 52975b51645eaf5ae2aac6c1000f8efd + - 62c1f5d866be5c87e788613f00170fb0 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.028069' + - '0.038585' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -88,11 +88,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/customs_items/cstitem_07988de34f094d4bb89b50f3c0b5fe0d + uri: https://api.easypost.com/v2/customs_items/cstitem_f69c399844294c5d8f2783fb0f4cf759 response: body: - string: '{"id": "cstitem_07988de34f094d4bb89b50f3c0b5fe0d", "object": "CustomsItem", - "created_at": "2023-05-12T21:27:54Z", "updated_at": "2023-05-12T21:27:54Z", + string: '{"id": "cstitem_f69c399844294c5d8f2783fb0f4cf759", "object": "CustomsItem", + "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": @@ -104,8 +104,6 @@ interactions: - '376' content-type: - application/json; charset=utf-8 - etag: - - W/"1f31e2d103ff414109cc7121e547eb38" expires: - '0' pragma: @@ -123,20 +121,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b51645eaf5ae2aac6c1000f8f07 + - 62c1f5d866be5c87e788613f00170fcb x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.018146' + - '0.025397' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_demo_hooks.yaml b/tests/cassettes/test_demo_hooks.yaml deleted file mode 100644 index fe68daf6..00000000 --- a/tests/cassettes/test_demo_hooks.yaml +++ /dev/null @@ -1,66 +0,0 @@ -interactions: -- request: - body: '{"parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '67' - Content-Type: - - application/json - authorization: - - - user-agent: - - - method: POST - uri: https://api.easypost.com/v2/parcels - response: - body: - string: '{"error": {"code": "APIKEY.INACTIVE", "message": "This api key is no - longer active. Please use a different api key or reactivate this key.", "errors": - []}}' - headers: - cache-control: - - no-cache - content-length: - - '149' - content-type: - - application/json; charset=utf-8 - referrer-policy: - - strict-origin-when-cross-origin - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-backend: - - easypost - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-ep-request-uuid: - - 26766bd164c40f06f3f8e38e00033351 - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb36nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb2nuq d3d339cca1 - - intlb1wdc d3d339cca1 - - extlb4wdc 003ad9bca0 - x-runtime: - - '0.009841' - x-version-label: - - easypost-202307281702-336406b3a6-master - x-xss-protection: - - 1; mode=block - status: - code: 403 - message: Forbidden -version: 1 diff --git a/tests/cassettes/test_endshipper_all.yaml b/tests/cassettes/test_endshipper_all.yaml index 9f9a115a..aed99252 100644 --- a/tests/cassettes/test_endshipper_all.yaml +++ b/tests/cassettes/test_endshipper_all.yaml @@ -48,8 +48,6 @@ interactions: - '1883' content-type: - application/json; charset=utf-8 - etag: - - W/"db8ceea617c141dfcd08324be9b162d0" expires: - '0' pragma: @@ -67,20 +65,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d164626697e7873378001df054 + - 62c1f5d866be5c88e7886142001710a8 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.467413' + - '0.602542' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_endshipper_create.yaml b/tests/cassettes/test_endshipper_create.yaml index 3d4ad168..5b9b8d60 100644 --- a/tests/cassettes/test_endshipper_create.yaml +++ b/tests/cassettes/test_endshipper_create.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/end_shippers response: body: - string: '{"id": "es_a22ec4be7f1c493dadd7387a473a1ab5", "object": "EndShipper", - "mode": "test", "created_at": "2023-05-15T17:06:31+00:00", "updated_at": "2023-05-15T17:06:31+00:00", + string: '{"id": "es_ef2b59d05fba457cbddcf06e626223c5", "object": "EndShipper", + "mode": "test", "created_at": "2024-08-15T19:52:40+00:00", "updated_at": "2024-08-15T19:52:40+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -34,8 +34,6 @@ interactions: - '365' content-type: - application/json; charset=utf-8 - etag: - - W/"0dc84aacbbd1c8eba7534638af7a26fc" expires: - '0' pragma: @@ -53,20 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2cf64626697e7873376001defdb + - 62c1f5dd66be5c88e788614000171006 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.047065' + - '0.052347' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_endshipper_retrieve.yaml b/tests/cassettes/test_endshipper_retrieve.yaml index d819b7ce..1b4b7de0 100644 --- a/tests/cassettes/test_endshipper_retrieve.yaml +++ b/tests/cassettes/test_endshipper_retrieve.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/end_shippers response: body: - string: '{"id": "es_fdfc86215f714c83983c36d4bdb4c02c", "object": "EndShipper", - "mode": "test", "created_at": "2023-05-15T17:10:42+00:00", "updated_at": "2023-05-15T17:10:42+00:00", + string: '{"id": "es_50c27a0653174c01970f6844e95a33d8", "object": "EndShipper", + "mode": "test", "created_at": "2024-08-15T19:52:40+00:00", "updated_at": "2024-08-15T19:52:40+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -34,8 +34,6 @@ interactions: - '365' content-type: - application/json; charset=utf-8 - etag: - - W/"90e7b59409069e588a6f0ba0f294e8a7" expires: - '0' pragma: @@ -53,20 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b564626792e78733e1001dd798 + - 62c1f5d866be5c88e788614100171048 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.127109' + - '0.056509' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -86,11 +84,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/end_shippers/es_fdfc86215f714c83983c36d4bdb4c02c + uri: https://api.easypost.com/v2/end_shippers/es_50c27a0653174c01970f6844e95a33d8 response: body: - string: '{"id": "es_fdfc86215f714c83983c36d4bdb4c02c", "object": "EndShipper", - "mode": "test", "created_at": "2023-05-15T17:10:42+00:00", "updated_at": "2023-05-15T17:10:42+00:00", + string: '{"id": "es_50c27a0653174c01970f6844e95a33d8", "object": "EndShipper", + "mode": "test", "created_at": "2024-08-15T19:52:40+00:00", "updated_at": "2024-08-15T19:52:40+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -101,8 +99,6 @@ interactions: - '367' content-type: - application/json; charset=utf-8 - etag: - - W/"4e32647a5ff79d299a8a6852282b5b4e" expires: - '0' pragma: @@ -120,20 +116,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b564626792e78733e1001dd7b2 + - 62c1f5d866be5c88e788614100171068 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.034040' + - '0.029566' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_endshipper_update.yaml b/tests/cassettes/test_endshipper_update.yaml index 9c6b0405..859cae26 100644 --- a/tests/cassettes/test_endshipper_update.yaml +++ b/tests/cassettes/test_endshipper_update.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/end_shippers response: body: - string: '{"id": "es_2544052ddb324b189db927d9fc2c57a8", "object": "EndShipper", - "mode": "test", "created_at": "2023-05-15T17:12:14+00:00", "updated_at": "2023-05-15T17:12:14+00:00", + string: '{"id": "es_ad8cde1ed2dd4d65a83fc6066bd62796", "object": "EndShipper", + "mode": "test", "created_at": "2024-08-15T19:52:41+00:00", "updated_at": "2024-08-15T19:52:41+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -34,8 +34,6 @@ interactions: - '365' content-type: - application/json; charset=utf-8 - etag: - - W/"537d10fcc17cf9fa0dbd4baa596adc3b" expires: - '0' pragma: @@ -53,20 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b0646267eee787345e001e0ae8 + - 62c1f5da66be5c89e78861430017119f x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.047672' + - '0.049814' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -92,11 +90,11 @@ interactions: user-agent: - method: PUT - uri: https://api.easypost.com/v2/end_shippers/es_2544052ddb324b189db927d9fc2c57a8 + uri: https://api.easypost.com/v2/end_shippers/es_ad8cde1ed2dd4d65a83fc6066bd62796 response: body: - string: '{"id": "es_2544052ddb324b189db927d9fc2c57a8", "object": "EndShipper", - "mode": "test", "created_at": "2023-05-15T17:12:14+00:00", "updated_at": "2023-05-15T17:12:14+00:00", + string: '{"id": "es_ad8cde1ed2dd4d65a83fc6066bd62796", "object": "EndShipper", + "mode": "test", "created_at": "2024-08-15T19:52:41+00:00", "updated_at": "2024-08-15T19:52:41+00:00", "name": "CAPTAIN SPARROW", "company": "EASYPOST", "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -107,8 +105,6 @@ interactions: - '374' content-type: - application/json; charset=utf-8 - etag: - - W/"249c4184f944522a4d47509c626a0bd3" expires: - '0' pragma: @@ -126,20 +122,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b0646267eee787345e001e0b11 + - 62c1f5da66be5c89e7886143001711be x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.047896' + - '0.067068' x-version-label: - - easypost-202305122104-29dd2d738a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_error.yaml b/tests/cassettes/test_error.yaml index 30eb98c3..5c304008 100644 --- a/tests/cassettes/test_error.yaml +++ b/tests/cassettes/test_error.yaml @@ -41,27 +41,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b865666398e78a9788003e6bcc + - 62c1f5dd66be5c8ae788614400171210 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.037568' + - '0.025504' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_all.yaml b/tests/cassettes/test_event_all.yaml index b77c4adc..344dce06 100644 --- a/tests/cassettes/test_event_all.yaml +++ b/tests/cassettes/test_event_all.yaml @@ -16,31 +16,29 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "tracker.updated", "id": "evt_10273e48f0fd11ed84793ba5a8eedd27", + string: '{"events": [{"description": "tracker.created", "id": "evt_ecc447ee5b3f11efb81703b24128e5c4", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:42:00.675Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_09ce2606f0fd11edbdad75c323776192", "user_id": + "2024-08-15T19:52:38.512Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e98543305b3f11ef8f0819412c30cbb6", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:41:50.025Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_ec52b330f0fc11ed8fb25952d8250621", "user_id": + "2024-08-15T19:52:33.066Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e64273965b3f11ef89a955639b5325b3", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:41:00.562Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_e5fa84d6f0fc11ed8a553172f33bdada", "user_id": + "2024-08-15T19:52:27.595Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e1f88e1a5b3f11ef923f11dbabadcf44", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:40:49.917Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_c87dfcdaf0fc11ed853c153e3118e97d", "user_id": + "2024-08-15T19:52:20.400Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e155647e5b3f11ef92ec2db9b1a3ed44", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:40:00.447Z", "mode": "test", "object": "Event"}], "has_more": + "2024-08-15T19:52:19.331Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '1118' + - '1114' content-type: - application/json; charset=utf-8 - etag: - - W/"61a0f7c32156b73ff33fabdb5284da68" expires: - '0' pragma: @@ -53,25 +51,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 3f02a2cf64626ba0e7874083002057b8 + - 62c1f5dc66be5c8ae788615c0017126c x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.267240' + - '0.228543' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_get_next_page.yaml b/tests/cassettes/test_event_get_next_page.yaml index ac43d6f3..e4c564cf 100644 --- a/tests/cassettes/test_event_get_next_page.yaml +++ b/tests/cassettes/test_event_get_next_page.yaml @@ -16,31 +16,29 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "tracker.updated", "id": "evt_10273e48f0fd11ed84793ba5a8eedd27", + string: '{"events": [{"description": "tracker.created", "id": "evt_ecc447ee5b3f11efb81703b24128e5c4", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:42:00.675Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_09ce2606f0fd11edbdad75c323776192", "user_id": + "2024-08-15T19:52:38.512Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e98543305b3f11ef8f0819412c30cbb6", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:41:50.025Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_ec52b330f0fc11ed8fb25952d8250621", "user_id": + "2024-08-15T19:52:33.066Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e64273965b3f11ef89a955639b5325b3", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:41:00.562Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_e5fa84d6f0fc11ed8a553172f33bdada", "user_id": + "2024-08-15T19:52:27.595Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e1f88e1a5b3f11ef923f11dbabadcf44", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:40:49.917Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_c87dfcdaf0fc11ed853c153e3118e97d", "user_id": + "2024-08-15T19:52:20.400Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e155647e5b3f11ef92ec2db9b1a3ed44", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:40:00.447Z", "mode": "test", "object": "Event"}], "has_more": + "2024-08-15T19:52:19.331Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '1118' + - '1114' content-type: - application/json; charset=utf-8 - etag: - - W/"61a0f7c32156b73ff33fabdb5284da68" expires: - '0' pragma: @@ -58,20 +56,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d064626ba0e7874084002057f4 + - 62c1f5d966be5c8ae788615d001712dc x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.170665' + - '0.207426' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -91,34 +89,32 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/events?before_id=evt_c87dfcdaf0fc11ed853c153e3118e97d&page_size=5 + uri: https://api.easypost.com/v2/events?before_id=evt_e155647e5b3f11ef92ec2db9b1a3ed44&page_size=5 response: body: - string: '{"events": [{"description": "tracker.updated", "id": "evt_c22867d0f0fc11edbf5125fe92c43377", + string: '{"events": [{"description": "batch.updated", "id": "evt_deed12ea5b3f11efbc51556efb4ede2a", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:39:49.820Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_a4a7e438f0fc11edbb1f752a305029e8", "user_id": + "2024-08-15T19:52:15.292Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_db46dc525b3f11ef8fae3551cd8ef274", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:39:00.324Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_9e56d940f0fc11edbe666751f31c23c9", "user_id": + "2024-08-15T19:52:09.169Z", "mode": "test", "object": "Event"}, {"description": + "batch.created", "id": "evt_db3765f65b3f11efbb3d2728988b29f1", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:38:49.727Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_9817a12cf0fc11eda7595724f9200c12", "user_id": + "2024-08-15T19:52:09.068Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_db0f0f485b3f11ef80d50170de2557da", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:38:39.246Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_92c775f8f0fc11edbe070b24beca53c4", "user_id": + "2024-08-15T19:52:08.803Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_dafaa1e85b3f11ef8f063fd59bf5c7da", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:38:30.332Z", "mode": "test", "object": "Event"}], "has_more": + "2024-08-15T19:52:08.670Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '1118' + - '1108' content-type: - application/json; charset=utf-8 - etag: - - W/"7d718e919329335c52fb8ef7535143e3" expires: - '0' pragma: @@ -131,25 +127,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d064626ba1e78740840020580c + - 62c1f5d966be5c8be788615d0017131a x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.180954' + - '0.211666' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_retrieve.yaml b/tests/cassettes/test_event_retrieve.yaml index 2256deb4..5f699a6e 100644 --- a/tests/cassettes/test_event_retrieve.yaml +++ b/tests/cassettes/test_event_retrieve.yaml @@ -16,31 +16,29 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "tracker.updated", "id": "evt_10273e48f0fd11ed84793ba5a8eedd27", + string: '{"events": [{"description": "tracker.created", "id": "evt_ecc447ee5b3f11efb81703b24128e5c4", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:42:00.675Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_09ce2606f0fd11edbdad75c323776192", "user_id": + "2024-08-15T19:52:38.512Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e98543305b3f11ef8f0819412c30cbb6", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:41:50.025Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_ec52b330f0fc11ed8fb25952d8250621", "user_id": + "2024-08-15T19:52:33.066Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e64273965b3f11ef89a955639b5325b3", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:41:00.562Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_e5fa84d6f0fc11ed8a553172f33bdada", "user_id": + "2024-08-15T19:52:27.595Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e1f88e1a5b3f11ef923f11dbabadcf44", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:40:49.917Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_c87dfcdaf0fc11ed853c153e3118e97d", "user_id": + "2024-08-15T19:52:20.400Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e155647e5b3f11ef92ec2db9b1a3ed44", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-12T19:40:00.447Z", "mode": "test", "object": "Event"}], "has_more": + "2024-08-15T19:52:19.331Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '1118' + - '1114' content-type: - application/json; charset=utf-8 - etag: - - W/"61a0f7c32156b73ff33fabdb5284da68" expires: - '0' pragma: @@ -58,20 +56,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d364626ba1e787409c0020583f + - 62c1f5da66be5c8be788615e00171390 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.262186' + - '0.196899' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_retrieve_all_payloads.yaml b/tests/cassettes/test_event_retrieve_all_payloads.yaml index bcae4a42..734ca6df 100644 --- a/tests/cassettes/test_event_retrieve_all_payloads.yaml +++ b/tests/cassettes/test_event_retrieve_all_payloads.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_30cbb3bcf43711eda27917199f9eab66", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2023-05-16T22:15:40Z", + string: '{"id": "hook_f0169e7e5b3f11ef93004502123c0e35", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:52:44Z", "disabled_at": null}' headers: cache-control: @@ -30,8 +30,6 @@ interactions: - '161' content-type: - application/json; charset=utf-8 - etag: - - W/"0b3a022179ea56708476ff21fddeac78" expires: - '0' pragma: @@ -49,20 +47,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56464008be789616500454978 + - 62c1f5dc66be5c8ce788615f001713f9 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.145589' + - '0.167627' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -75,7 +73,7 @@ interactions: "from_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}]}}' headers: Accept: @@ -85,7 +83,7 @@ interactions: Connection: - keep-alive Content-Length: - - '610' + - '620' Content-Type: - application/json authorization: @@ -96,9 +94,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_6a8cc8c3ffa0487090ac2a78560381a8", "object": "Batch", + string: '{"id": "batch_c5ffa43f3dd3420d88614343a6845c9b", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2023-05-16T22:15:39Z", "updated_at": "2023-05-16T22:15:39Z", + "created_at": "2024-08-15T19:52:44Z", "updated_at": "2024-08-15T19:52:44Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -109,8 +107,6 @@ interactions: - '384' content-type: - application/json; charset=utf-8 - etag: - - W/"95c902e14c2730a14518095df7403015" expires: - '0' pragma: @@ -128,20 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56464008be789616500454999 + - 62c1f5dc66be5c8ce788615f00171440 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.078742' + - '0.049346' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -164,21 +160,21 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "batch.updated", "id": "evt_3114fc5cf43711ed92c01d9acf3b6d2f", + string: '{"events": [{"description": "tracker.created", "id": "evt_f0d9ebc25b3f11efa2091dc3d8b7f0c5", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-16T22:15:40.219Z", "mode": "test", "object": "Event"}, {"description": - "batch.created", "id": "evt_30fa3458f43711edb0a95dbb9ce80898", "user_id": + "2024-08-15T19:52:45.365Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_f051cc605b3f11efb4605b7c947b81d7", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-16T22:15:40.043Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_01cecac2f43711edbfcc39fdecca41c5", "user_id": - "user_54356a6b96c940d8913961a3c7b909f2", "status": "completed", "created_at": - "2023-05-16T22:14:20.906Z", "mode": "test", "object": "Event"}, {"description": - "batch.created", "id": "evt_01ca2094f43711edac311769086f7b77", "user_id": - "user_54356a6b96c940d8913961a3c7b909f2", "status": "completed", "created_at": - "2023-05-16T22:14:20.875Z", "mode": "test", "object": "Event"}, {"description": - "tracker.updated", "id": "evt_cadfbb70f40911edba08274a5cb8030b", "user_id": + "2024-08-15T19:52:44.473Z", "mode": "test", "object": "Event"}, {"description": + "batch.created", "id": "evt_f041ac545b3f11efa0ac1b866d416644", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-16T16:50:41.389Z", "mode": "test", "object": "Event"}], "has_more": + "2024-08-15T19:52:44.367Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_ecc447ee5b3f11efb81703b24128e5c4", "user_id": + "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": + "2024-08-15T19:52:38.512Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e98543305b3f11ef8f0819412c30cbb6", "user_id": + "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": + "2024-08-15T19:52:33.066Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: @@ -187,8 +183,6 @@ interactions: - '1114' content-type: - application/json; charset=utf-8 - etag: - - W/"e130af1ee1eb30fa0ff82b16eb2b6145" expires: - '0' pragma: @@ -206,20 +200,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e564640091e789616500454b76 + - 62c1f5dc66be5c91e788615f001719b3 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.201761' + - '0.218895' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -239,7 +233,7 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/events/evt_3114fc5cf43711ed92c01d9acf3b6d2f/payloads + uri: https://api.easypost.com/v2/events/evt_f0d9ebc25b3f11efa2091dc3d8b7f0c5/payloads response: body: string: '{"payloads": []}' @@ -250,8 +244,6 @@ interactions: - '15' content-type: - application/json; charset=utf-8 - etag: - - W/"b5e6dd0a7b95afc23c69e9e95aa4ce47" expires: - '0' pragma: @@ -264,25 +256,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e564640091e789616500454b92 + - 62c1f5dc66be5c91e788615f00171a14 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.036003' + - '0.041334' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -304,7 +298,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_30cbb3bcf43711eda27917199f9eab66 + uri: https://api.easypost.com/v2/webhooks/hook_f0169e7e5b3f11ef93004502123c0e35 response: body: string: '{}' @@ -315,8 +309,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -334,20 +326,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e564640091e789616500454b9c + - 62c1f5dc66be5c91e788615f00171a3b x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.356449' + - '0.356509' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_retrieve_payload.yaml b/tests/cassettes/test_event_retrieve_payload.yaml index 44a271a7..f6950aeb 100644 --- a/tests/cassettes/test_event_retrieve_payload.yaml +++ b/tests/cassettes/test_event_retrieve_payload.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_3499e3e2f43711edbb447565db124d54", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2023-05-16T22:15:46Z", + string: '{"id": "hook_f3ec28b65b3f11efb261096fa1830e98", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:52:51Z", "disabled_at": null}' headers: cache-control: @@ -30,8 +30,6 @@ interactions: - '161' content-type: - application/json; charset=utf-8 - etag: - - W/"214d548f4b77946290e22683029b1755" expires: - '0' pragma: @@ -49,20 +47,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e064640092e789616600454bd6 + - 62c1f5d666be5c92e788616000171aee x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.152518' + - '0.207950' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -75,7 +73,7 @@ interactions: "from_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}]}}' headers: Accept: @@ -85,7 +83,7 @@ interactions: Connection: - keep-alive Content-Length: - - '610' + - '620' Content-Type: - application/json authorization: @@ -96,9 +94,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_3613de1570fd4802a09bdcc819fce1ca", "object": "Batch", + string: '{"id": "batch_26a82690e5ff4d64998082a42910408a", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2023-05-16T22:15:46Z", "updated_at": "2023-05-16T22:15:46Z", + "created_at": "2024-08-15T19:52:50Z", "updated_at": "2024-08-15T19:52:50Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -109,8 +107,6 @@ interactions: - '384' content-type: - application/json; charset=utf-8 - etag: - - W/"f384683cef26655745fc3488715bc3b9" expires: - '0' pragma: @@ -128,20 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e064640092e789616600454be6 + - 62c1f5d666be5c92e788616000171b3c x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.044101' + - '0.054041' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -164,21 +160,21 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "batch.updated", "id": "evt_34dbac50f43711edba5907e39df03ec8", + string: '{"events": [{"description": "batch.updated", "id": "evt_f4405e045b3f11ef94983fa5d330c72f", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-16T22:15:46.554Z", "mode": "test", "object": "Event"}, {"description": - "batch.created", "id": "evt_34c41b76f43711ed89787bd323736654", "user_id": + "2024-08-15T19:52:51.070Z", "mode": "test", "object": "Event"}, {"description": + "batch.created", "id": "evt_f41f0c0e5b3f11ef82727905adf3347d", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-16T22:15:46.399Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_3114fc5cf43711ed92c01d9acf3b6d2f", "user_id": + "2024-08-15T19:52:50.851Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_f0d9ebc25b3f11efa2091dc3d8b7f0c5", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-16T22:15:40.219Z", "mode": "test", "object": "Event"}, {"description": - "batch.created", "id": "evt_30fa3458f43711edb0a95dbb9ce80898", "user_id": + "2024-08-15T19:52:45.365Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_f051cc605b3f11efb4605b7c947b81d7", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2023-05-16T22:15:40.043Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_01cecac2f43711edbfcc39fdecca41c5", "user_id": - "user_54356a6b96c940d8913961a3c7b909f2", "status": "completed", "created_at": - "2023-05-16T22:14:20.906Z", "mode": "test", "object": "Event"}], "has_more": + "2024-08-15T19:52:44.473Z", "mode": "test", "object": "Event"}, {"description": + "batch.created", "id": "evt_f041ac545b3f11efa0ac1b866d416644", "user_id": + "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": + "2024-08-15T19:52:44.367Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: @@ -187,8 +183,6 @@ interactions: - '1110' content-type: - application/json; charset=utf-8 - etag: - - W/"43775f333ea34d7b38f91d698f05df34" expires: - '0' pragma: @@ -206,20 +200,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e064640097e789616600454db3 + - 62c1f5d666be5c97e78861600017208d x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.262082' + - '0.277720' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -239,7 +233,7 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/events/evt_34dbac50f43711edba5907e39df03ec8/payloads/payload_11111111111111111111111111111111 + uri: https://api.easypost.com/v2/events/evt_f4405e045b3f11ef94983fa5d330c72f/payloads/payload_11111111111111111111111111111111 response: body: string: '{"error": {"code": "PAYLOAD.NOT_FOUND", "message": "The payload(s) @@ -263,25 +257,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e064640098e789616600454dc9 + - 62c1f5d666be5c98e7886160001720e4 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.031689' + - '0.068406' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -303,7 +299,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_3499e3e2f43711edbb447565db124d54 + uri: https://api.easypost.com/v2/webhooks/hook_f3ec28b65b3f11efb261096fa1830e98 response: body: string: '{}' @@ -314,8 +310,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -333,20 +327,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e064640098e789616600454dd4 + - 62c1f5d666be5c98e788616000172101 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.268077' + - '0.457687' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_all.yaml b/tests/cassettes/test_insurance_all.yaml index 0585b884..76311cb6 100644 --- a/tests/cassettes/test_insurance_all.yaml +++ b/tests/cassettes/test_insurance_all.yaml @@ -16,11 +16,11 @@ interactions: uri: https://api.easypost.com/v2/insurances?page_size=5 response: body: - string: '{"insurances": [{"id": "ins_11815503dde74592ab2efba19b0ee7ab", "object": + string: '{"insurances": [{"id": "ins_0b02293630584ec38a869419b0545069", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_412a603f8e3911eea073ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:25+00:00", "name": + "adr_fa00aedb5b3f11efab92ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -28,8 +28,8 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_41300cdf8e3911eea079ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:25+00:00", "name": + {"id": "adr_fa0af6b05b3f11ef8ca4ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -37,26 +37,26 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "shipment_id": null, "tracker": {"id": - "trk_245ad918d85e43bb924f6d3803d6a196", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105442285851814", "status": "error", "status_detail": - null, "created_at": "2023-11-28T21:58:25Z", "updated_at": "2023-11-28T21:58:25Z", + "trk_50b372963459402aa81977a2feb1ac20", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742510", "status": "error", "status_detail": + null, "created_at": "2024-08-15T19:53:01Z", "updated_at": "2024-08-15T19:53:01Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", "description": - "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:25Z", + "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:53:01Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrXzI0NWFkOTE4ZDg1ZTQzYmI5MjRmNmQzODAzZDZhMTk2", - "fees": []}, "tracking_code": "9400100105442285851814", "fee": {"object": + "https://track.easypost.com/djE6dHJrXzUwYjM3Mjk2MzQ1OTQwMmFhODE5NzdhMmZlYjFhYzIw", + "fees": []}, "tracking_code": "9400100105807075742510", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-11-28T21:58:25Z", "updated_at": - "2023-11-28T21:58:25Z"}, {"id": "ins_0ffcd38dd4a04b9d97eb5d6aad7a4533", "object": + false}, "messages": [], "created_at": "2024-08-15T19:53:00Z", "updated_at": + "2024-08-15T19:53:00Z"}, {"id": "ins_129dfdb3ef8241cfa53deda1eb48e675", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_4244261b8e3911ee9d51ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+00:00", "name": + "adr_f9018af05b3f11ef8c31ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -64,8 +64,8 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_42495c3e8e3911ee91863cecef1b359e", "object": "Address", "created_at": - "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+00:00", "name": + {"id": "adr_f90743da5b3f11efbc1bac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -73,27 +73,156 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "shipment_id": null, "tracker": {"id": - "trk_b66e456ceda6498d9693ef37a81d4b8e", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105442285851890", "status": "error", "status_detail": - null, "created_at": "2023-11-28T21:58:27Z", "updated_at": "2023-11-28T21:58:27Z", + "trk_46cb95a5b744445ca3218886dd2856ca", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742497", "status": "error", "status_detail": + null, "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", "description": - "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:27Z", + "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:52:59Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrX2I2NmU0NTZjZWRhNjQ5OGQ5NjkzZWYzN2E4MWQ0Yjhl", - "fees": []}, "tracking_code": "9400100105442285851890", "fee": {"object": + "https://track.easypost.com/djE6dHJrXzQ2Y2I5NWE1Yjc0NDQ0NWNhMzIxODg4NmRkMjg1NmNh", + "fees": []}, "tracking_code": "9400100105807075742497", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-11-28T21:58:27Z", "updated_at": - "2023-11-28T21:58:27Z"}], "has_more": false}' + false}, "messages": [], "created_at": "2024-08-15T19:52:59Z", "updated_at": + "2024-08-15T19:52:59Z"}, {"id": "ins_99a199efd8b74ce1b2f75ea747e19a96", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "tracker": {"id": + "trk_54131fb3d69d493e85b1cea4c2629a71", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742381", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2024-08-15T19:52:37Z", "updated_at": "2024-08-15T19:52:37Z", + "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:37Z", + "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-07-15T19:52:37Z", "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-07-16T08:29:37Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": + "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": + "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": + null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzU0MTMxZmIzZDY5ZDQ5M2U4NWIxY2VhNGMyNjI5YTcx", + "fees": []}, "tracking_code": "9400100105807075742381", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-08-15T19:52:37Z", "updated_at": + "2024-08-15T19:52:37Z"}, {"id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_e88398b65b3f11ef92023cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "tracker": {"id": + "trk_393a646a6cae4372b2bbda8e63441cc9", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742367", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2024-08-15T19:52:33Z", "updated_at": "2024-08-15T19:52:33Z", + "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:33Z", + "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-07-15T19:52:33Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": + null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-07-16T08:29:33Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": + "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": + "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": + null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzM5M2E2NDZhNmNhZTQzNzJiMmJiZGE4ZTYzNDQxY2M5", + "fees": []}, "tracking_code": "9400100105807075742367", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-08-15T19:52:33Z", "updated_at": + "2024-08-15T19:52:33Z"}, {"id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "tracker": {"id": + "trk_0d8953331dc048958fe9d879fc3c1b6b", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742343", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", + "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:29Z", + "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-07-15T19:52: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-07-16T08:29:29Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": + "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": + "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": + null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzBkODk1MzMzMWRjMDQ4OTU4ZmU5ZDg3OWZjM2MxYjZi", + "fees": []}, "tracking_code": "9400100105807075742343", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-08-15T19:52:29Z", "updated_at": + "2024-08-15T19:52:30Z"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '5347' + - '15168' content-type: - application/json; charset=utf-8 expires: @@ -113,20 +242,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b865666283e78a938d003d1ec4 + - 62c1f5d666be5c9de788617d00172578 x-frame-options: - SAMEORIGIN x-node: - - bigweb31nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.128904' + - '0.373892' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_create.yaml b/tests/cassettes/test_insurance_create.yaml index eb8aed59..4ec008e3 100644 --- a/tests/cassettes/test_insurance_create.yaml +++ b/tests/cassettes/test_insurance_create.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T21:58:24Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:52:57Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285851814", "updated_at": "2023-11-28T21:58:24Z", "batch_id": + "9400100105807075742497", "updated_at": "2024-08-15T19:52:58Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_4076ee1a8e3911eea675ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T21:58:24+00:00", "updated_at": "2023-11-28T21:58:24+00:00", "name": + {"id": "adr_f85e77345b3f11efaad6ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:52:57+00:00", "updated_at": "2024-08-15T19:52:57+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_733bae54d2cb42ccbacdcc221c93a3c8", - "object": "Parcel", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b7e2c1fd906241e7ab6dd28b1c0fa27e", + "object": "Parcel", "created_at": "2024-08-15T19:52:57Z", "updated_at": "2024-08-15T19:52:57Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_b676af131dc8485ea2aee7ee90ae7040", - "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T21:58:24Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f7ace2c87a85460dbcab5b1094012585", + "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:58Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e81fae8e14de21404abb454a0d7b03cfa3.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86e9a9b006fca417d9a8692f86e041ed7.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_4561f63fbda042ff87a22b574d391f0f", "object": - "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dca8baad26784846824f16f52ef44435", - "object": "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_94f107f2036142e08d6dfb2726bbaf0d", "object": + "Rate", "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", + "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_975470c5f2e942b297e5079a7bf3a16b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7e009408cdd245d2b7f0fa909cc1034e", + "object": "Rate", "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e0a2a0be3f5749fda514ef41a4cd4e76", + "object": "Rate", "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", + "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_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_52c6b9a02dd04ab4a0e02158aa20627f", - "object": "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", + 2, "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_94f107f2036142e08d6dfb2726bbaf0d", "object": + "Rate", "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_05dc8c204e6e4794a0ac03cb7273e539", - "object": "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_5f3aa67bdad441b1b12d93e2d52f1935", "object": "Rate", "created_at": - "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_05dc8c204e6e4794a0ac03cb7273e539", - "object": "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_374f321e6f8f4f549c25360cce633ff1", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285851814", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T21:58:24Z", "updated_at": - "2023-11-28T21:58:24Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier": "USPS", + 3, "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_d4f0a70a8f04482bab878b49dbfc1476", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742497", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:58Z", + "updated_at": "2024-08-15T19:52:58Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzM3NGYzMjFlNmY4ZjRmNTQ5YzI1MzYwY2NlNjMzZmYx"}, - "to_address": {"id": "adr_4074b9858e3911ee9ffeac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T21:58:24+00:00", "updated_at": "2023-11-28T21:58:24+00:00", + "https://track.easypost.com/djE6dHJrX2Q0ZjBhNzBhOGYwNDQ4MmJhYjg3OGI0OWRiZmMxNDc2"}, + "to_address": {"id": "adr_f85a15895b3f11ef99ee3cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:52:57+00:00", "updated_at": "2024-08-15T19:52:58+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_4076ee1a8e3911eea675ac1f6bc539ae", - "object": "Address", "created_at": "2023-11-28T21:58:24+00:00", "updated_at": - "2023-11-28T21:58:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_f85e77345b3f11efaad6ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:52:57+00:00", "updated_at": + "2024-08-15T19:52:57+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_4074b9858e3911ee9ffeac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T21:58:24+00:00", "updated_at": "2023-11-28T21:58:24+00:00", "name": + "adr_f85a15895b3f11ef99ee3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:57+00:00", "updated_at": "2024-08-15T19:52:58+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_800d9b4d653549eeb3ef1c3b6c647305", "object": + "refunded": false}], "id": "shp_975470c5f2e942b297e5079a7bf3a16b", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_800d9b4d653549eeb3ef1c3b6c647305 + - /api/v2/shipments/shp_975470c5f2e942b297e5079a7bf3a16b pragma: - no-cache referrer-policy: @@ -151,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b665666280e78a938b003d1b1d + - 62c1f5dc66be5c99e788616400172219 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.931188' + - '0.941998' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -177,7 +164,7 @@ interactions: "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "carrier": "USPS", "amount": "100", "tracking_code": - "9400100105442285851814"}}' + "9400100105807075742497"}}' headers: Accept: - '*/*' @@ -197,38 +184,38 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: '{"id": "ins_11815503dde74592ab2efba19b0ee7ab", "object": "Insurance", + string: '{"id": "ins_129dfdb3ef8241cfa53deda1eb48e675", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_412a603f8e3911eea073ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T21:58:25+00:00", "updated_at": - "2023-11-28T21:58:25+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": - "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_f9018af05b3f11ef8c31ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:52:59+00:00", "updated_at": + "2024-08-15T19:52:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_41300cdf8e3911eea079ac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:25+00:00", + "from_address": {"id": "adr_f90743da5b3f11efbc1bac1f6bc539ae", "object": "Address", + "created_at": "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_374f321e6f8f4f549c25360cce633ff1", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285851814", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2023-11-28T21:58:25Z", - "updated_at": "2023-11-28T21:58:25Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-11-28T21:58:25Z", "shipment_id": "shp_800d9b4d653549eeb3ef1c3b6c647305", + "shipment_id": null, "tracker": {"id": "trk_d4f0a70a8f04482bab878b49dbfc1476", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742497", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:52:58Z", + "updated_at": "2024-08-15T19:52:58Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:52:58Z", "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T21:58:25Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:52:58Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:35:25Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:29:58Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -237,22 +224,22 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzM3NGYzMjFlNmY4ZjRmNTQ5YzI1MzYwY2NlNjMzZmYx", - "fees": []}, "tracking_code": "9400100105442285851814", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2Q0ZjBhNzBhOGYwNDQ4MmJhYjg3OGI0OWRiZmMxNDc2", + "fees": []}, "tracking_code": "9400100105807075742497", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-11-28T21:58:25Z", "updated_at": - "2023-11-28T21:58:25Z"}' + false}, "messages": [], "created_at": "2024-08-15T19:52:59Z", "updated_at": + "2024-08-15T19:52:59Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '3420' + - '3424' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/insurances/ins_11815503dde74592ab2efba19b0ee7ab + - /api/v2/insurances/ins_129dfdb3ef8241cfa53deda1eb48e675 pragma: - no-cache referrer-policy: @@ -268,20 +255,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b665666281e78a938b003d1c29 + - 62c1f5dc66be5c9ae788616400172304 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.172876' + - '0.346702' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_get_next_page.yaml b/tests/cassettes/test_insurance_get_next_page.yaml index 256754df..6dca0f7b 100644 --- a/tests/cassettes/test_insurance_get_next_page.yaml +++ b/tests/cassettes/test_insurance_get_next_page.yaml @@ -16,11 +16,11 @@ interactions: uri: https://api.easypost.com/v2/insurances?page_size=5 response: body: - string: '{"insurances": [{"id": "ins_11815503dde74592ab2efba19b0ee7ab", "object": + string: '{"insurances": [{"id": "ins_0b02293630584ec38a869419b0545069", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_412a603f8e3911eea073ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:25+00:00", "name": + "adr_fa00aedb5b3f11efab92ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -28,8 +28,8 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_41300cdf8e3911eea079ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:25+00:00", "name": + {"id": "adr_fa0af6b05b3f11ef8ca4ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -37,26 +37,26 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "shipment_id": null, "tracker": {"id": - "trk_245ad918d85e43bb924f6d3803d6a196", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105442285851814", "status": "error", "status_detail": - null, "created_at": "2023-11-28T21:58:25Z", "updated_at": "2023-11-28T21:58:25Z", + "trk_50b372963459402aa81977a2feb1ac20", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742510", "status": "error", "status_detail": + null, "created_at": "2024-08-15T19:53:01Z", "updated_at": "2024-08-15T19:53:01Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", "description": - "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:25Z", + "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:53:01Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrXzI0NWFkOTE4ZDg1ZTQzYmI5MjRmNmQzODAzZDZhMTk2", - "fees": []}, "tracking_code": "9400100105442285851814", "fee": {"object": + "https://track.easypost.com/djE6dHJrXzUwYjM3Mjk2MzQ1OTQwMmFhODE5NzdhMmZlYjFhYzIw", + "fees": []}, "tracking_code": "9400100105807075742510", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-11-28T21:58:25Z", "updated_at": - "2023-11-28T21:58:25Z"}, {"id": "ins_0ffcd38dd4a04b9d97eb5d6aad7a4533", "object": + false}, "messages": [], "created_at": "2024-08-15T19:53:00Z", "updated_at": + "2024-08-15T19:53:00Z"}, {"id": "ins_129dfdb3ef8241cfa53deda1eb48e675", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_4244261b8e3911ee9d51ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+00:00", "name": + "adr_f9018af05b3f11ef8c31ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -64,8 +64,8 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_42495c3e8e3911ee91863cecef1b359e", "object": "Address", "created_at": - "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+00:00", "name": + {"id": "adr_f90743da5b3f11efbc1bac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -73,27 +73,156 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "shipment_id": null, "tracker": {"id": - "trk_b66e456ceda6498d9693ef37a81d4b8e", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105442285851890", "status": "error", "status_detail": - null, "created_at": "2023-11-28T21:58:27Z", "updated_at": "2023-11-28T21:58:27Z", + "trk_46cb95a5b744445ca3218886dd2856ca", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742497", "status": "error", "status_detail": + null, "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", "description": - "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:27Z", + "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:52:59Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrX2I2NmU0NTZjZWRhNjQ5OGQ5NjkzZWYzN2E4MWQ0Yjhl", - "fees": []}, "tracking_code": "9400100105442285851890", "fee": {"object": + "https://track.easypost.com/djE6dHJrXzQ2Y2I5NWE1Yjc0NDQ0NWNhMzIxODg4NmRkMjg1NmNh", + "fees": []}, "tracking_code": "9400100105807075742497", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-11-28T21:58:27Z", "updated_at": - "2023-11-28T21:58:27Z"}], "has_more": false}' + false}, "messages": [], "created_at": "2024-08-15T19:52:59Z", "updated_at": + "2024-08-15T19:52:59Z"}, {"id": "ins_99a199efd8b74ce1b2f75ea747e19a96", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "tracker": {"id": + "trk_54131fb3d69d493e85b1cea4c2629a71", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742381", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2024-08-15T19:52:37Z", "updated_at": "2024-08-15T19:52:37Z", + "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:37Z", + "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-07-15T19:52:37Z", "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-07-16T08:29:37Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": + "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": + "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": + null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzU0MTMxZmIzZDY5ZDQ5M2U4NWIxY2VhNGMyNjI5YTcx", + "fees": []}, "tracking_code": "9400100105807075742381", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-08-15T19:52:37Z", "updated_at": + "2024-08-15T19:52:37Z"}, {"id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_e88398b65b3f11ef92023cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "tracker": {"id": + "trk_393a646a6cae4372b2bbda8e63441cc9", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742367", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2024-08-15T19:52:33Z", "updated_at": "2024-08-15T19:52:33Z", + "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:33Z", + "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-07-15T19:52:33Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": + null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-07-16T08:29:33Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": + "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": + "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": + null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzM5M2E2NDZhNmNhZTQzNzJiMmJiZGE4ZTYzNDQxY2M5", + "fees": []}, "tracking_code": "9400100105807075742367", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-08-15T19:52:33Z", "updated_at": + "2024-08-15T19:52:33Z"}, {"id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "tracker": {"id": + "trk_0d8953331dc048958fe9d879fc3c1b6b", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105807075742343", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", + "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:29Z", + "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-07-15T19:52: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-07-16T08:29:29Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": + "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": + "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": + null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzBkODk1MzMzMWRjMDQ4OTU4ZmU5ZDg3OWZjM2MxYjZi", + "fees": []}, "tracking_code": "9400100105807075742343", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-08-15T19:52:29Z", "updated_at": + "2024-08-15T19:52:30Z"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '5347' + - '15168' content-type: - application/json; charset=utf-8 expires: @@ -113,7 +242,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0ba65666284e78a938e003d1f50 + - 62c1f5dd66be5c9ee788617e0017260e x-frame-options: - SAMEORIGIN x-node: @@ -121,12 +250,423 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c + x-runtime: + - '0.291435' + x-version-label: + - easypost-202408151917-1527448f18-master + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + authorization: + - + user-agent: + - + method: GET + uri: https://api.easypost.com/v2/insurances?before_id=ins_cc8aaf0d3a6540c9a008f4a5a1637ef8&page_size=5 + response: + body: + string: '{"insurances": [{"id": "ins_d80beb2a846941d8b9f16be60b769b2a", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "249.99000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_c5968bd74ad411efbbddac1f6bc53342", "object": "Address", "created_at": + "2024-07-25T22:25:18+00:00", "updated_at": "2024-07-25T22:26:11+00:00", "name": + "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_c59928c24ad411efbbdfac1f6bc53342", "object": "Address", "created_at": + "2024-07-25T22:25:18+00:00", "updated_at": "2024-07-25T22:25:18+00:00", "name": + "EasyPost", "company": null, "street1": "417 Montgomery Street", "street2": + "5th Floor", "city": "San Francisco", "state": "CA", "zip": "94104", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_e9bcfcc782864d66ae709914881250a6", "tracker": {"id": + "trk_7d17e2b23b1744498dc938af7cbd44cb", "object": "Tracker", "mode": "test", + "tracking_code": "9434600110368067392068", "status": "delivered", "status_detail": + "arrived_at_destination", "created_at": "2024-07-25T22:26:12Z", "updated_at": + "2024-07-25T22:29:12Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": + "2024-07-25T22:29:12Z", "shipment_id": "shp_e9bcfcc782864d66ae709914881250a6", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-06-25T22:29:12Z", "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-26T11:06:12Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": + "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2024-06-26T21:11:12Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2024-06-27T22:47:12Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", + "message": "Arrived at Post Office", "description": "", "status": "in_transit", + "status_detail": "arrived_at_facility", "datetime": "2024-06-28T01:38:12Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2024-06-28T07:18:12Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-28T07:28:12Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2024-06-28T12:20:12Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": + {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}, + "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2024-06-28T12:20:12Z"}, "finalized": true, + "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzdkMTdlMmIyM2IxNzQ0NDk4ZGM5MzhhZjdjYmQ0NGNi", + "fees": []}, "tracking_code": "9434600110368067392068", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "2.49990", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-07-25T22:26:11Z", "updated_at": + "2024-07-25T22:26:12Z"}, {"id": "ins_8d75d3dcf398461aaa330e48dbd4c19e", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_7f960d15491c11efb81cac1f6bc539ae", "object": "Address", "created_at": + "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:43+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_7f98d03a491c11efa416ac1f6bc53342", "object": "Address", "created_at": + "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:42+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", "tracker": {"id": + "trk_094807d115c14008b09588e9a336d226", "object": "Tracker", "mode": "test", + "tracking_code": "9400100110368066361872", "status": "delivered", "status_detail": + "arrived_at_destination", "created_at": "2024-07-23T17:53:43Z", "updated_at": + "2024-07-23T17:56:44Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": + "2024-07-23T17:56:44Z", "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-06-23T17:56:44Z", "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:33:44Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": + "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2024-06-24T16:38:44Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2024-06-25T18:14:44Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", + "message": "Arrived at Post Office", "description": "", "status": "in_transit", + "status_detail": "arrived_at_facility", "datetime": "2024-06-25T21:05:44Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2024-06-26T02:45:44Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-26T02:55:44Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2024-06-26T07:47:44Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": + {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}, + "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2024-06-26T07:47:44Z"}, "finalized": true, + "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzA5NDgwN2QxMTVjMTQwMDhiMDk1ODhlOWEzMzZkMjI2", + "fees": []}, "tracking_code": "9400100110368066361872", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-07-23T17:53:43Z", "updated_at": + "2024-07-23T17:53:44Z"}, {"id": "ins_33a9255ab9f443c18a1c1876bc6e25a4", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_7d0ab012491c11ef98423cecef1b359e", "object": "Address", "created_at": + "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:38+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_7d0d0fd8491c11efa2a9ac1f6bc53342", "object": "Address", "created_at": + "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:37+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", "tracker": {"id": + "trk_50a3f6c393cf407cb7e82a16e753f932", "object": "Tracker", "mode": "test", + "tracking_code": "9400100110368066361841", "status": "delivered", "status_detail": + "arrived_at_destination", "created_at": "2024-07-23T17:53:39Z", "updated_at": + "2024-07-23T17:56:39Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": + "2024-07-23T17:56:39Z", "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-06-23T17:56:39Z", "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:33:39Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": + "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2024-06-24T16:38:39Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2024-06-25T18:14:39Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", + "message": "Arrived at Post Office", "description": "", "status": "in_transit", + "status_detail": "arrived_at_facility", "datetime": "2024-06-25T21:05:39Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2024-06-26T02:45:39Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-26T02:55:39Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2024-06-26T07:47:39Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": + {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}, + "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2024-06-26T07:47:39Z"}, "finalized": true, + "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzUwYTNmNmMzOTNjZjQwN2NiN2U4MmExNmU3NTNmOTMy", + "fees": []}, "tracking_code": "9400100110368066361841", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-07-23T17:53:39Z", "updated_at": + "2024-07-23T17:53:39Z"}, {"id": "ins_6aa59cf8618843c09b4707e1f3f74486", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_7ae1fcad491c11efb015ac1f6bc539aa", "object": "Address", "created_at": + "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:35+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_7ae4b187491c11efb529ac1f6bc539ae", "object": "Address", "created_at": + "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:34+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", "tracker": {"id": + "trk_40df1d2c30a74d65b09c6fe5fb904cc0", "object": "Tracker", "mode": "test", + "tracking_code": "9400100110368066361827", "status": "delivered", "status_detail": + "arrived_at_destination", "created_at": "2024-07-23T17:53:35Z", "updated_at": + "2024-07-23T17:56:36Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": + "2024-07-23T17:56:36Z", "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-06-23T17:56:36Z", "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:33:36Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": + "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2024-06-24T16:38:36Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2024-06-25T18:14:36Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", + "message": "Arrived at Post Office", "description": "", "status": "in_transit", + "status_detail": "arrived_at_facility", "datetime": "2024-06-25T21:05:36Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2024-06-26T02:45:36Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-26T02:55:36Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2024-06-26T07:47:36Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": + {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}, + "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2024-06-26T07:47:36Z"}, "finalized": true, + "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzQwZGYxZDJjMzBhNzRkNjViMDljNmZlNWZiOTA0Y2Mw", + "fees": []}, "tracking_code": "9400100110368066361827", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-07-23T17:53:36Z", "updated_at": + "2024-07-23T17:53:36Z"}, {"id": "ins_d15880e5772c4373aec497744fa4da54", "object": + "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": + "249.99000", "provider": "easypost", "provider_id": null, "to_address": {"id": + "adr_2702e7a0491611ef9aa4ac1f6bc53342", "object": "Address", "created_at": + "2024-07-23T17:08:16+00:00", "updated_at": "2024-07-23T17:09:42+00:00", "name": + "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", "street2": + null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": + {"id": "adr_27059612491611ef9aa6ac1f6bc53342", "object": "Address", "created_at": + "2024-07-23T17:08:16+00:00", "updated_at": "2024-07-23T17:08:16+00:00", "name": + "EasyPost", "company": null, "street1": "417 Montgomery Street", "street2": + "5th Floor", "city": "San Francisco", "state": "CA", "zip": "94104", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipment_id": "shp_09a808dae97442f3aa7fbd994a3533d4", "tracker": {"id": + "trk_a61a9fecf69b4964849e39fc7cc1dfc5", "object": "Tracker", "mode": "test", + "tracking_code": "9470100110368066351889", "status": "delivered", "status_detail": + "arrived_at_destination", "created_at": "2024-07-23T17:09:43Z", "updated_at": + "2024-07-23T17:12:43Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": + "2024-07-23T17:12:43Z", "shipment_id": "shp_09a808dae97442f3aa7fbd994a3533d4", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-06-23T17:12:43Z", "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-24T05:49:43Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": + "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2024-06-24T15:54:43Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2024-06-25T17:30:43Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", + "message": "Arrived at Post Office", "description": "", "status": "in_transit", + "status_detail": "arrived_at_facility", "datetime": "2024-06-25T20:21:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2024-06-26T02:01:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-26T02:11:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2024-06-26T07:03:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": + {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": + null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": + "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}, + "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2024-06-26T07:03:43Z"}, "finalized": true, + "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2E2MWE5ZmVjZjY5YjQ5NjQ4NDllMzlmYzdjYzFkZmM1", + "fees": []}, "tracking_code": "9470100110368066351889", "fee": {"object": + "Fee", "type": "InsuranceFee", "amount": "2.49990", "charged": true, "refunded": + false}, "messages": [], "created_at": "2024-07-23T17:09:42Z", "updated_at": + "2024-07-23T17:09:42Z"}], "has_more": true}' + headers: + cache-control: + - private, no-cache, no-store + content-length: + - '26603' + content-type: + - application/json; charset=utf-8 + expires: + - '0' + pragma: + - no-cache + referrer-policy: + - strict-origin-when-cross-origin + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-backend: + - easypost + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-ep-request-uuid: + - 62c1f5dd66be5c9ee788617e00172673 + x-frame-options: + - SAMEORIGIN + x-node: + - bigweb42nuq + x-permitted-cross-domain-policies: + - none + x-proxied: + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.130021' + - '0.426833' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_refund.yaml b/tests/cassettes/test_insurance_refund.yaml index e244fec6..e156a4dc 100644 --- a/tests/cassettes/test_insurance_refund.yaml +++ b/tests/cassettes/test_insurance_refund.yaml @@ -26,38 +26,38 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: '{"id": "ins_b649ec97deaf4bce84873366a6c5d41a", "object": "Insurance", + string: '{"id": "ins_934e819458684a25b65437b09886339c", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_e0963f8df5d111eeb369ac1f6bc539aa", - "object": "Address", "created_at": "2024-04-08T18:00:25+00:00", "updated_at": - "2024-04-08T18:00:25+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": - "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_fb8e11d55b3f11ef8d75ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:03+00:00", "updated_at": + "2024-08-15T19:53:03+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_e09e23dcf5d111eead5d3cecef1b359e", "object": "Address", - "created_at": "2024-04-08T18:00:26+00:00", "updated_at": "2024-04-08T18:00:26+00:00", + "from_address": {"id": "adr_fb93fbd65b3f11ef8d77ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:03+00:00", "updated_at": "2024-08-15T19:53:03+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_14186867f37a44fb876a1fe4aacc675c", + "shipment_id": null, "tracker": {"id": "trk_62f6076a9a3f4338b86e15e7fef1d00d", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": - "pre_transit", "status_detail": "status_update", "created_at": "2024-04-08T17:58:39Z", - "updated_at": "2024-04-08T17:58:39Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-04-08T17:58:39Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "pre_transit", "status_detail": "status_update", "created_at": "2024-07-18T20:43:47Z", + "updated_at": "2024-07-18T20:43:48Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-07-18T20:43:47Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": "status_update", - "datetime": "2024-03-08T17:58:39Z", "source": "USPS", "carrier_code": "", + "datetime": "2024-06-18T20:43:47Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-03-09T06:35:39Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2024-06-19T09:20:47Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -66,21 +66,21 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzE0MTg2ODY3ZjM3YTQ0ZmI4NzZhMWZlNGFhY2M2NzVj", + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzYyZjYwNzZhOWEzZjQzMzhiODZlMTVlN2ZlZjFkMDBk", "fees": []}, "tracking_code": "EZ1000000001", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": false}, - "messages": [], "created_at": "2024-04-08T18:00:26Z", "updated_at": "2024-04-08T18:00:26Z"}' + "messages": [], "created_at": "2024-08-15T19:53:03Z", "updated_at": "2024-08-15T19:53:03Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '3366' + - '3370' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/insurances/ins_b649ec97deaf4bce84873366a6c5d41a + - /api/v2/insurances/ins_934e819458684a25b65437b09886339c pragma: - no-cache referrer-policy: @@ -91,27 +91,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 0f86fc76661430b9e799e92100897c77 + - 62c1f5db66be5c9fe788617f00172733 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq 39c21b8207 - - extlb1nuq 60566a9ec2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.194536' + - '0.395710' x-version-label: - - easypost-202404081732-cdcb81b7f6-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -135,22 +133,22 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/insurances/ins_b649ec97deaf4bce84873366a6c5d41a/refund + uri: https://api.easypost.com/v2/insurances/ins_934e819458684a25b65437b09886339c/refund response: body: - string: '{"id": "ins_b649ec97deaf4bce84873366a6c5d41a", "object": "Insurance", + string: '{"id": "ins_934e819458684a25b65437b09886339c", "object": "Insurance", "mode": "test", "reference": null, "status": "cancelled", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_e0963f8df5d111eeb369ac1f6bc539aa", - "object": "Address", "created_at": "2024-04-08T18:00:25+00:00", "updated_at": - "2024-04-08T18:00:25+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_fb8e11d55b3f11ef8d75ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:03+00:00", "updated_at": + "2024-08-15T19:53:03+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_e09e23dcf5d111eead5d3cecef1b359e", "object": "Address", - "created_at": "2024-04-08T18:00:26+00:00", "updated_at": "2024-04-08T18:00:26+00:00", + "from_address": {"id": "adr_fb93fbd65b3f11ef8d77ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:03+00:00", "updated_at": "2024-08-15T19:53:03+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -158,18 +156,18 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_e332af52adae42bbaec7109079e5d806", + "shipment_id": null, "tracker": {"id": "trk_4939db1d0bec497193c8d3601a96a5fc", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": - "pre_transit", "status_detail": "status_update", "created_at": "2024-04-08T18:00:26Z", - "updated_at": "2024-04-08T18:00:26Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-04-08T18:00:26Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:03Z", + "updated_at": "2024-08-15T19:53:03Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:03Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": "status_update", - "datetime": "2024-03-08T18:00:26Z", "source": "USPS", "carrier_code": "", + "datetime": "2024-07-15T19:53:03Z", "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-03-09T06:37:26Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2024-07-16T08:30:03Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -178,16 +176,16 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2UzMzJhZjUyYWRhZTQyYmJhZWM3MTA5MDc5ZTVkODA2", + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzQ5MzlkYjFkMGJlYzQ5NzE5M2M4ZDM2MDFhOTZhNWZj", "fees": []}, "tracking_code": "EZ1000000001", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": false}, - "messages": ["Insurance was cancelled by the user."], "created_at": "2024-04-08T18:00:26Z", - "updated_at": "2024-04-08T18:00:26Z"}' + "messages": ["Insurance was cancelled by the user."], "created_at": "2024-08-15T19:53:03Z", + "updated_at": "2024-08-15T19:53:03Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '3410' + - '3420' content-type: - application/json; charset=utf-8 expires: @@ -209,20 +207,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 0f86fc76661430bae799e92100897d12 + - 62c1f5db66be5c9fe788617f001727c6 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq 39c21b8207 - - extlb1nuq 60566a9ec2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.152472' + - '0.240240' x-version-label: - - easypost-202404081732-cdcb81b7f6-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_retrieve.yaml b/tests/cassettes/test_insurance_retrieve.yaml index ca52e35a..5d3a3a37 100644 --- a/tests/cassettes/test_insurance_retrieve.yaml +++ b/tests/cassettes/test_insurance_retrieve.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T21:58:25Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:52:59Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285851890", "updated_at": "2023-11-28T21:58:26Z", "batch_id": + "9400100105807075742510", "updated_at": "2024-08-15T19:53:00Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_418251128e3911ee9cddac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:25+00:00", "name": + {"id": "adr_f953a1915b3f11ef9a443cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7b8149d0b2734690bb89244ae8c7591d", - "object": "Parcel", "created_at": "2023-11-28T21:58:25Z", "updated_at": "2023-11-28T21:58:25Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_13f63dae576746cf942f8c56fbd3b90c", + "object": "Parcel", "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_40d45098bf324183aa4e1b60d49f7df2", - "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T21:58:26Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_c36b5d5f94774acaa577bcfd1a460c10", + "created_at": "2024-08-15T19:53:00Z", "updated_at": "2024-08-15T19:53:00Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:00Z", "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/20231128/e8d85ba30daa6844d9aff8ddcb208354ae.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8a409691bd1c84a9b910d52347d2f17f1.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_34d22a58366149168e62dab13e6ce733", "object": - "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d40554647ed54a108767e06682b3af7c", - "object": "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_cbe9921e5b194e1aa0c0dff095e21425", "object": + "Rate", "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", + "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_d52dc659ac2647558fb9e2cc375227d1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f13665d2820f4869b6460066fee0d509", + "object": "Rate", "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_585e5d8046f14581a3ebb1dcff49d6a7", + "object": "Rate", "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", + "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_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_58e59b3ea17b45f1aa749694e5aa554c", - "object": "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", + 2, "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_cbe9921e5b194e1aa0c0dff095e21425", "object": + "Rate", "created_at": "2024-08-15T19:53:00Z", "updated_at": "2024-08-15T19:53:00Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9a47a1c4883a470aad3663891f5622cf", - "object": "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_f4de1d35f5ef4331be35c60d80853fca", "object": "Rate", "created_at": - "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_9a47a1c4883a470aad3663891f5622cf", - "object": "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_b83cd338b47842969a7d9a2d3b726f3d", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285851890", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T21:58:26Z", "updated_at": - "2023-11-28T21:58:26Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier": "USPS", + 3, "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_89a2a0bddd2c4915ab2b8290ef012f5e", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742510", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:00Z", + "updated_at": "2024-08-15T19:53:00Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2I4M2NkMzM4YjQ3ODQyOTY5YTdkOWEyZDNiNzI2ZjNk"}, - "to_address": {"id": "adr_418004308e3911eea0b5ac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:26+00:00", + "https://track.easypost.com/djE6dHJrXzg5YTJhMGJkZGQyYzQ5MTVhYjJiODI5MGVmMDEyZjVl"}, + "to_address": {"id": "adr_f950f6c35b3f11ef8c4fac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_418251128e3911ee9cddac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T21:58:25+00:00", "updated_at": - "2023-11-28T21:58:25+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_f953a1915b3f11ef9a443cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:52:59+00:00", "updated_at": + "2024-08-15T19:52:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_418004308e3911eea0b5ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:26+00:00", "name": + "adr_f950f6c35b3f11ef8c4fac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_c2f3f9bed1444ee8963e8703930d462f", "object": + "refunded": false}], "id": "shp_d52dc659ac2647558fb9e2cc375227d1", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_c2f3f9bed1444ee8963e8703930d462f + - /api/v2/shipments/shp_d52dc659ac2647558fb9e2cc375227d1 pragma: - no-cache referrer-policy: @@ -151,7 +138,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9265666281e78a938c003ca785 + - 62c1f5d666be5c9be78861650017239a x-frame-options: - SAMEORIGIN x-node: @@ -159,12 +146,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.136140' + - '1.003053' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -177,7 +164,7 @@ interactions: "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "carrier": "USPS", "amount": "100", "tracking_code": - "9400100105442285851890"}}' + "9400100105807075742510"}}' headers: Accept: - '*/*' @@ -197,38 +184,38 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: '{"id": "ins_0ffcd38dd4a04b9d97eb5d6aad7a4533", "object": "Insurance", + string: '{"id": "ins_0b02293630584ec38a869419b0545069", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_4244261b8e3911ee9d51ac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T21:58:27+00:00", "updated_at": - "2023-11-28T21:58:27+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": - "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_fa00aedb5b3f11efab92ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:00+00:00", "updated_at": + "2024-08-15T19:53:00+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_42495c3e8e3911ee91863cecef1b359e", "object": "Address", - "created_at": "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+00:00", + "from_address": {"id": "adr_fa0af6b05b3f11ef8ca4ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_b83cd338b47842969a7d9a2d3b726f3d", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285851890", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2023-11-28T21:58:27Z", - "updated_at": "2023-11-28T21:58:27Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-11-28T21:58:27Z", "shipment_id": "shp_c2f3f9bed1444ee8963e8703930d462f", + "shipment_id": null, "tracker": {"id": "trk_89a2a0bddd2c4915ab2b8290ef012f5e", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742510", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:00Z", + "updated_at": "2024-08-15T19:53:00Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:00Z", "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T21:58:27Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:35:27Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -237,22 +224,22 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2I4M2NkMzM4YjQ3ODQyOTY5YTdkOWEyZDNiNzI2ZjNk", - "fees": []}, "tracking_code": "9400100105442285851890", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzg5YTJhMGJkZGQyYzQ5MTVhYjJiODI5MGVmMDEyZjVl", + "fees": []}, "tracking_code": "9400100105807075742510", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-11-28T21:58:27Z", "updated_at": - "2023-11-28T21:58:27Z"}' + false}, "messages": [], "created_at": "2024-08-15T19:53:00Z", "updated_at": + "2024-08-15T19:53:00Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '3420' + - '3424' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/insurances/ins_0ffcd38dd4a04b9d97eb5d6aad7a4533 + - /api/v2/insurances/ins_0b02293630584ec38a869419b0545069 pragma: - no-cache referrer-policy: @@ -263,25 +250,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9265666283e78a938c003ca88f + - 62c1f5d666be5c9ce7886165001724a2 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.181146' + - '0.388430' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -301,22 +290,22 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/insurances/ins_0ffcd38dd4a04b9d97eb5d6aad7a4533 + uri: https://api.easypost.com/v2/insurances/ins_0b02293630584ec38a869419b0545069 response: body: - string: '{"id": "ins_0ffcd38dd4a04b9d97eb5d6aad7a4533", "object": "Insurance", + string: '{"id": "ins_0b02293630584ec38a869419b0545069", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_4244261b8e3911ee9d51ac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T21:58:27+00:00", "updated_at": - "2023-11-28T21:58:27+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_fa00aedb5b3f11efab92ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:00+00:00", "updated_at": + "2024-08-15T19:53:00+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_42495c3e8e3911ee91863cecef1b359e", "object": "Address", - "created_at": "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+00:00", + "from_address": {"id": "adr_fa0af6b05b3f11ef8ca4ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -324,27 +313,27 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_b66e456ceda6498d9693ef37a81d4b8e", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285851890", - "status": "error", "status_detail": null, "created_at": "2023-11-28T21:58:27Z", - "updated_at": "2023-11-28T21:58:27Z", "signed_by": null, "weight": null, "est_delivery_date": + "shipment_id": null, "tracker": {"id": "trk_50b372963459402aa81977a2feb1ac20", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742510", + "status": "error", "status_detail": null, "created_at": "2024-08-15T19:53:01Z", + "updated_at": "2024-08-15T19:53:01Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", - "description": "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:27Z", + "description": "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:53:01Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrX2I2NmU0NTZjZWRhNjQ5OGQ5NjkzZWYzN2E4MWQ0Yjhl", - "fees": []}, "tracking_code": "9400100105442285851890", "fee": {"object": + "https://track.easypost.com/djE6dHJrXzUwYjM3Mjk2MzQ1OTQwMmFhODE5NzdhMmZlYjFhYzIw", + "fees": []}, "tracking_code": "9400100105807075742510", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-11-28T21:58:27Z", "updated_at": - "2023-11-28T21:58:27Z"}' + false}, "messages": [], "created_at": "2024-08-15T19:53:00Z", "updated_at": + "2024-08-15T19:53:00Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '2656' + - '2666' content-type: - application/json; charset=utf-8 expires: @@ -359,25 +348,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9265666283e78a938c003ca8cb + - 62c1f5d666be5c9de788616500172519 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.076884' + - '0.179617' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_buy.yaml b/tests/cassettes/test_order_buy.yaml index b03fbcd5..82adb461 100644 --- a/tests/cassettes/test_order_buy.yaml +++ b/tests/cassettes/test_order_buy.yaml @@ -27,253 +27,226 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:41Z", - "updated_at": "2024-06-14T16:51:43Z", "customs_info": null, "from_address": - {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": "Address", "created_at": - "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}], "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:14Z", + "customs_info": null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": + "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": + "2024-08-15T19:53:13+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + {}}, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-06-14T16:51:41Z", "is_return": false, - "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + {}}, "shipments": [{"created_at": "2024-08-15T19:53:13Z", "is_return": false, + "messages": [{"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:41Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", - "object": "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": - "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:13Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": + "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_eb97896350a44a99a7311b8b46f24c4d", "parcel": {"id": "prcl_917cf75362fe447984f62a74d76a94a5", - "object": "Parcel", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + "order_1ec32f65712d4da18891042c8b13a320", "parcel": {"id": "prcl_f3ca719456b24d78bb1db4ba34b1fc80", + "object": "Parcel", "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_3686f3e252d447cfa98ca8ebc2d08ce8", - "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_40e9f85e183a4fc991950df1d8452c49", - "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "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_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e23cf13e6b234c0a9b945cd195db6fe1", - "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + 2, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4a33c6c437914edb88fd59d8e9378156", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", - "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_4d87d8a281d4441aa6496a230049a798", "object": "Rate", "created_at": - "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", - "object": "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": - "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": + "2024-08-15T19:53:13+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_9afcc08837eb40629c9217cad9b7d6b1", - "object": "Shipment"}, {"created_at": "2024-06-14T16:51:41Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + {}}, "forms": [], "fees": [], "id": "shp_33818a0642104028b9c680342f687137", + "object": "Shipment"}, {"created_at": "2024-08-15T19:53:13Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:41Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", - "object": "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": - "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:13Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": + "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_eb97896350a44a99a7311b8b46f24c4d", "parcel": {"id": "prcl_8d95e55464df48a0bb1799df2877e485", - "object": "Parcel", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + "order_1ec32f65712d4da18891042c8b13a320", "parcel": {"id": "prcl_825ae02c7a6c4a03bbfb07e3456ef0d6", + "object": "Parcel", "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_84ded8d7a860438b99a0ef129009eb79", - "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_23e0487de82b475eb599bc4464c7cb98", - "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_12f65c47259b4658b19df702e504a593", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_203ae1edd59347be96d2b075322b638a", - "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_69ef22b0358b40738e0f14131ec1ccd6", "object": "Rate", "created_at": - "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_bc1d9372deb74d29ac83fdd41764a70c", "object": "Rate", "created_at": - "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", - "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", - "object": "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": - "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37dd89b2cb32496eab9fa0aad6c724f3", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_46080d7983d6421b8b46245a8246b8d6", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": + "2024-08-15T19:53:13+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_1e82d1e11edf44c598791abfa99eb186", - "object": "Shipment"}], "rates": [{"id": "rate_3686f3e252d447cfa98ca8ebc2d08ce8", + {}}, "forms": [], "fees": [], "id": "shp_8c97e92d163a457da27bffbc5311c7c4", + "object": "Shipment"}], "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "14.48", "currency": "USD", + "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_33818a0642104028b9c680342f687137", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_4a33c6c437914edb88fd59d8e9378156", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": + "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_40e9f85e183a4fc991950df1d8452c49", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": - "USPS", "rate": "13.79", "currency": "USD", "retail_rate": "22.30", "retail_currency": - "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e23cf13e6b234c0a9b945cd195db6fe1", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4d87d8a281d4441aa6496a230049a798", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_eb97896350a44a99a7311b8b46f24c4d", "object": "Order"}' + "shp_33818a0642104028b9c680342f687137", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_1ec32f65712d4da18891042c8b13a320", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '18372' + - '16329' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_eb97896350a44a99a7311b8b46f24c4d + - /api/v2/orders/order_1ec32f65712d4da18891042c8b13a320 pragma: - no-cache referrer-policy: @@ -289,27 +262,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 9a934139666c751de78b0a46000b0999 + - 62c1f5d966be5ca9e78861c000173189 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.543781' + - '1.661868' x-version-label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"carrier": "USPS", "service": "First"}' + body: '{"carrier": "USPS", "service": "GroundAdvantage"}' headers: Accept: - '*/*' @@ -318,7 +291,7 @@ interactions: Connection: - keep-alive Content-Length: - - '39' + - '49' Content-Type: - application/json authorization: @@ -326,127 +299,120 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/orders/order_eb97896350a44a99a7311b8b46f24c4d/buy + uri: https://api.easypost.com/v2/orders/order_1ec32f65712d4da18891042c8b13a320/buy response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:41Z", - "updated_at": "2024-06-14T16:51:43Z", "customs_info": null, "from_address": - {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": "Address", "created_at": - "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}], "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:14Z", + "customs_info": null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": + "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": + "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", + "zip": "90277-2506", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": + null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": + [], "details": null}, "delivery": {"success": true, "errors": [], "details": + {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, + "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "buyer_address": - {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", "name": - "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "return_address": - {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": "Address", "created_at": - "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": + {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-06-14T16:51:41Z", "is_return": false, + {}}, "shipments": [{"created_at": "2024-08-15T19:53:13Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": "9400100110368051965214", "updated_at": "2024-06-14T16:51:44Z", + "tracking_code": "9400100105807075742640", "updated_at": "2024-08-15T19:53:15Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_eb97896350a44a99a7311b8b46f24c4d", - "parcel": {"id": "prcl_917cf75362fe447984f62a74d76a94a5", "object": "Parcel", - "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + {}}, "insurance": null, "order_id": "order_1ec32f65712d4da18891042c8b13a320", + "parcel": {"id": "prcl_f3ca719456b24d78bb1db4ba34b1fc80", "object": "Parcel", + "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", "length": null, "width": null, "height": null, "predefined_package": null, "weight": 10.2, "mode": "test"}, "postage_label": {"object": "PostageLabel", - "id": "pl_d9240893eec240a1b8577b4836e9c58a", "created_at": "2024-06-14T16:51:43Z", - "updated_at": "2024-06-14T16:51:44Z", "date_advance": 0, "integrated_form": - "none", "label_date": "2024-06-14T16:51:43Z", "label_resolution": 300, "label_size": + "id": "pl_553320f687e9443d866f62d0f6402297", "created_at": "2024-08-15T19:53:15Z", + "updated_at": "2024-08-15T19:53:15Z", "date_advance": 0, "integrated_form": + "none", "label_date": "2024-08-15T19:53:15Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": "image/png", "label_url": - "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240614/e89f3ba2ed1b4d42f19f08fc433f210760.png", + "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8e7f7c416b427496ba2ad5d2d3a5df385.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_3686f3e252d447cfa98ca8ebc2d08ce8", "object": - "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + null}, "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", "object": + "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "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_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4a33c6c437914edb88fd59d8e9378156", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_40e9f85e183a4fc991950df1d8452c49", - "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e23cf13e6b234c0a9b945cd195db6fe1", - "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + 1, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_4a33c6c437914edb88fd59d8e9378156", "object": + "Rate", "created_at": "2024-08-15T19:53:15Z", "updated_at": "2024-08-15T19:53:15Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", - "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_4d87d8a281d4441aa6496a230049a798", "object": "Rate", "created_at": - "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", - "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_642520ed55ce4e08aa2ed90f6a3406e6", "object": "Tracker", - "mode": "test", "tracking_code": "9400100110368051965214", "status": "unknown", - "status_detail": "unknown", "created_at": "2024-06-14T16:51:44Z", "updated_at": - "2024-06-14T16:51:44Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier": "USPS", + 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_3089cb021793401da4a645e1c4f4379a", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742640", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:16Z", + "updated_at": "2024-08-15T19:53:16Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzY0MjUyMGVkNTVjZTRlMDhhYTJlZDkwZjZhMzQwNmU2"}, - "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", - "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", + "https://track.easypost.com/djE6dHJrXzMwODljYjAyMTc5MzQwMWRhNGE2NDVlMWM0ZjQzNzlh"}, + "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -454,14 +420,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + 4, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", + {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -471,80 +437,67 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.07000", "charged": true, "refunded": false}], "id": "shp_9afcc08837eb40629c9217cad9b7d6b1", - "object": "Shipment"}, {"created_at": "2024-06-14T16:51:41Z", "is_return": + "5.07000", "charged": true, "refunded": false}], "id": "shp_33818a0642104028b9c680342f687137", + "object": "Shipment"}, {"created_at": "2024-08-15T19:53:13Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": "9434600110368051965230", "updated_at": "2024-06-14T16:51:44Z", + "tracking_code": "9434600105807075742697", "updated_at": "2024-08-15T19:53:16Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_eb97896350a44a99a7311b8b46f24c4d", - "parcel": {"id": "prcl_8d95e55464df48a0bb1799df2877e485", "object": "Parcel", - "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + {}}, "insurance": null, "order_id": "order_1ec32f65712d4da18891042c8b13a320", + "parcel": {"id": "prcl_825ae02c7a6c4a03bbfb07e3456ef0d6", "object": "Parcel", + "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", "length": null, "width": null, "height": null, "predefined_package": null, "weight": 17.5, "mode": "test"}, "postage_label": {"object": "PostageLabel", - "id": "pl_1e0a2b1dcf794251a1dd113af503cf20", "created_at": "2024-06-14T16:51:44Z", - "updated_at": "2024-06-14T16:51:44Z", "date_advance": 0, "integrated_form": - "none", "label_date": "2024-06-14T16:51:44Z", "label_resolution": 300, "label_size": + "id": "pl_b2144b0eb8784c14a8c4b2186d6520e5", "created_at": "2024-08-15T19:53:16Z", + "updated_at": "2024-08-15T19:53:16Z", "date_advance": 0, "integrated_form": + "none", "label_date": "2024-08-15T19:53: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/20240614/e8d1cbf2c307ac41f9a28ecfefe47c5cd8.png", + "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e882636a63fd9c4d1c81ad135bf61b6d88.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_84ded8d7a860438b99a0ef129009eb79", "object": - "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + null}, "rates": [{"id": "rate_12f65c47259b4658b19df702e504a593", "object": + "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37dd89b2cb32496eab9fa0aad6c724f3", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_46080d7983d6421b8b46245a8246b8d6", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_23e0487de82b475eb599bc4464c7cb98", - "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + 2, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_12f65c47259b4658b19df702e504a593", "object": + "Rate", "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:16Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_203ae1edd59347be96d2b075322b638a", - "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_69ef22b0358b40738e0f14131ec1ccd6", "object": "Rate", "created_at": - "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_bc1d9372deb74d29ac83fdd41764a70c", "object": "Rate", "created_at": - "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", - "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_203ae1edd59347be96d2b075322b638a", - "object": "Rate", "created_at": "2024-06-14T16:51:44Z", "updated_at": "2024-06-14T16:51:44Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_460905fa33154d29a62b179de1ccd9b4", "object": "Tracker", - "mode": "test", "tracking_code": "9434600110368051965230", "status": "unknown", - "status_detail": "unknown", "created_at": "2024-06-14T16:51:44Z", "updated_at": - "2024-06-14T16:51:44Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier": "USPS", + 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_74a4cf0f407042489d0ef96c14f12467", + "object": "Tracker", "mode": "test", "tracking_code": "9434600105807075742697", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:16Z", + "updated_at": "2024-08-15T19:53:16Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzQ2MDkwNWZhMzMxNTRkMjlhNjJiMTc5ZGUxY2NkOWI0"}, - "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", - "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", + "https://track.easypost.com/djE6dHJrXzc0YTRjZjBmNDA3MDQyNDg5ZDBlZjk2YzE0ZjEyNDY3"}, + "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -552,14 +505,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + 4, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", + {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -569,46 +522,33 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "6.26000", "charged": true, "refunded": false}], "id": "shp_1e82d1e11edf44c598791abfa99eb186", - "object": "Shipment"}], "rates": [{"id": "rate_3686f3e252d447cfa98ca8ebc2d08ce8", + "6.33000", "charged": true, "refunded": false}], "id": "shp_8c97e92d163a457da27bffbc5311c7c4", + "object": "Shipment"}], "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "14.48", "currency": "USD", + "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_33818a0642104028b9c680342f687137", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_4a33c6c437914edb88fd59d8e9378156", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": + "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_40e9f85e183a4fc991950df1d8452c49", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": - "USPS", "rate": "13.79", "currency": "USD", "retail_rate": "22.30", "retail_currency": - "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e23cf13e6b234c0a9b945cd195db6fe1", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4d87d8a281d4441aa6496a230049a798", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_eb97896350a44a99a7311b8b46f24c4d", "object": "Order"}' + "shp_33818a0642104028b9c680342f687137", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_1ec32f65712d4da18891042c8b13a320", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '21121' + - '18542' content-type: - application/json; charset=utf-8 expires: @@ -628,20 +568,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 9a934139666c751fe78b0a46000b0b7c + - 62c1f5d966be5cabe78861c00017330e x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.631412' + - '1.581730' x-version-label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_create.yaml b/tests/cassettes/test_order_create.yaml index 5008f364..23f85931 100644 --- a/tests/cassettes/test_order_create.yaml +++ b/tests/cassettes/test_order_create.yaml @@ -27,253 +27,226 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:33Z", - "updated_at": "2024-06-14T16:51:35Z", "customs_info": null, "from_address": - {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", "object": "Address", "created_at": - "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "to_address": {"id": "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}], "created_at": "2024-08-15T19:53:04Z", "updated_at": "2024-08-15T19:53:07Z", + "customs_info": null, "from_address": {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": + "2024-08-15T19:53:04+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_fc2879685b3f11ef9bd13cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": + "2024-08-15T19:53:04+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_fc2879685b3f11ef9bd13cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", "object": - "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", + {}}, "return_address": {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-06-14T16:51:33Z", "is_return": false, - "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + {}}, "shipments": [{"created_at": "2024-08-15T19:53:04Z", "is_return": false, + "messages": [{"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:33Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": - "2024-06-14T16:51:33+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:04Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": + "2024-08-15T19:53:04+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_c125ca9307784d8ab68b72372b03d217", "parcel": {"id": "prcl_9d123f0b63094ebabd68af9a97fce61a", - "object": "Parcel", "created_at": "2024-06-14T16:51:33Z", "updated_at": "2024-06-14T16:51:33Z", + "order_d18796edae714f2887afd5a9fac92a4f", "parcel": {"id": "prcl_4bb9bd377db44fbc838d1d8a0a3a0d49", + "object": "Parcel", "created_at": "2024-08-15T19:53:04Z", "updated_at": "2024-08-15T19:53:04Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_ad9698588ba34f24a73e7b908f87e431", - "object": "Rate", "created_at": "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e0f40701cd76486c8d8315bd586f3453", + "object": "Rate", "created_at": "2024-08-15T19:53:06Z", "updated_at": "2024-08-15T19:53:06Z", + "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_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_aa57d4f0a4434d61a3d5fdd3f18cb6e1", + "object": "Rate", "created_at": "2024-08-15T19:53:06Z", "updated_at": "2024-08-15T19:53:06Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_835eb20253df48259ba44f0d2275a230", - "object": "Rate", "created_at": "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_1ed0a0715b674b26bf750a301421e4a2", "object": "Rate", "created_at": - "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_22c5633028284e76a6804de30c22f530", "object": "Rate", "created_at": - "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", - "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_f775e287d24446b7b1d4f1f7084fc095", "object": "Rate", "created_at": - "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "6.88", "currency": "USD", - "retail_rate": "9.80", "retail_currency": "USD", "list_rate": "8.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": - "2024-06-14T16:51:33+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4998f9a097d44aeca8c35d94c86c9137", + "object": "Rate", "created_at": "2024-08-15T19:53:06Z", "updated_at": "2024-08-15T19:53:06Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fc2879685b3f11ef9bd13cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": + "2024-08-15T19:53:04+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "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_fc2879685b3f11ef9bd13cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_01097ce983a94b739d59628b52f9f779", - "object": "Shipment"}, {"created_at": "2024-06-14T16:51:33Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + {}}, "forms": [], "fees": [], "id": "shp_2d41074ce2e6498f9eeaea359640954b", + "object": "Shipment"}, {"created_at": "2024-08-15T19:53:04Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:33Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": - "2024-06-14T16:51:33+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:04Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": + "2024-08-15T19:53:04+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_c125ca9307784d8ab68b72372b03d217", "parcel": {"id": "prcl_13b77ef58f5e4400bce57c7c5c9308a6", - "object": "Parcel", "created_at": "2024-06-14T16:51:33Z", "updated_at": "2024-06-14T16:51:33Z", + "order_d18796edae714f2887afd5a9fac92a4f", "parcel": {"id": "prcl_d6ae131fb36441a781aae1895bc101dd", + "object": "Parcel", "created_at": "2024-08-15T19:53:04Z", "updated_at": "2024-08-15T19:53:04Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c92e1aeae62741c789d90f2e481634b4", - "object": "Rate", "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_919cdedca6f1439c8a189bcc41912c1a", + "object": "Rate", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_a88b1db412114e5c8c7ccd58d4758440", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8a04c7a7a90343b288502428e2c2d429", + "object": "Rate", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_340bf1c54b3443909f0e354c7e371448", - "object": "Rate", "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e69e359e15394c738aad56b0ad73eff3", "object": "Rate", "created_at": - "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_0da43f0d562348c291c98a4cace138b7", "object": "Rate", "created_at": - "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", - "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_42462c86c9c34bddb5f5cffffe0b7a4f", "object": "Rate", "created_at": - "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "6.91", "currency": "USD", - "retail_rate": "12.50", "retail_currency": "USD", "list_rate": "8.97", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": - "2024-06-14T16:51:33+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_a88b1db412114e5c8c7ccd58d4758440", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5743d29dc76425c9d76fd4be72ee88e", + "object": "Rate", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_a88b1db412114e5c8c7ccd58d4758440", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fc2879685b3f11ef9bd13cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": + "2024-08-15T19:53:04+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "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_fc2879685b3f11ef9bd13cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_00156ee2b08b4c40bbc0ab21899b0582", - "object": "Shipment"}], "rates": [{"id": "rate_ad9698588ba34f24a73e7b908f87e431", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_835eb20253df48259ba44f0d2275a230", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_01097ce983a94b739d59628b52f9f779", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1ed0a0715b674b26bf750a301421e4a2", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_22c5633028284e76a6804de30c22f530", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "Express", "carrier": - "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": - "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 1, "shipment_id": "shp_01097ce983a94b739d59628b52f9f779", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f775e287d24446b7b1d4f1f7084fc095", + {}}, "forms": [], "fees": [], "id": "shp_a88b1db412114e5c8c7ccd58d4758440", + "object": "Shipment"}], "rates": [{"id": "rate_e0f40701cd76486c8d8315bd586f3453", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", + "service": "Priority", "carrier": "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_c125ca9307784d8ab68b72372b03d217", "object": "Order"}' + "shp_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_aa57d4f0a4434d61a3d5fdd3f18cb6e1", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": + "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 3, "shipment_id": "shp_2d41074ce2e6498f9eeaea359640954b", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4998f9a097d44aeca8c35d94c86c9137", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", + "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_d18796edae714f2887afd5a9fac92a4f", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '18372' + - '16329' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_c125ca9307784d8ab68b72372b03d217 + - /api/v2/orders/order_d18796edae714f2887afd5a9fac92a4f pragma: - no-cache referrer-policy: @@ -289,20 +262,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 9a93413d666c7515e78b0a42000b0094 + - 62c1f5db66be5ca0e788618000172851 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.876449' + - '2.898345' x-version-label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_get_rates.yaml b/tests/cassettes/test_order_get_rates.yaml index a1d7e9fc..3eb8af31 100644 --- a/tests/cassettes/test_order_get_rates.yaml +++ b/tests/cassettes/test_order_get_rates.yaml @@ -27,253 +27,226 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:37Z", - "updated_at": "2024-06-14T16:51:38Z", "customs_info": null, "from_address": - {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": "Address", "created_at": - "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}], "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:11Z", + "customs_info": null, "from_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", + {}}, "return_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-06-14T16:51:37Z", "is_return": false, - "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + {}}, "shipments": [{"created_at": "2024-08-15T19:53:09Z", "is_return": false, + "messages": [{"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:37Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": - "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:09Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_91a75b20226041348d9de7edf07471d0", "parcel": {"id": "prcl_dc600cd512fd431f86845b673e5988ca", - "object": "Parcel", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "order_5d3d965a86bd4a7fa08a685be2d7cb88", "parcel": {"id": "prcl_32b7696639ae47debdb603b25bf9cdac", + "object": "Parcel", "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:09Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_3182017060824864bdf0efe7be24eb1b", - "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6cf0ffa1024442a890528f1f5d3e1133", + "object": "Rate", "created_at": "2024-08-15T19:53:10Z", "updated_at": "2024-08-15T19:53:10Z", + "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_80279d23931641a884289c4d529446e0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d2a8e32c15d6430cb1dd220bf9ded63f", - "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", + 2, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1ad3cc8441ea47c2a762e872f109623e", + "object": "Rate", "created_at": "2024-08-15T19:53:10Z", "updated_at": "2024-08-15T19:53:10Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6b8f1ab432744d23b59e831d5752c13e", - "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_0cffbf229b104252b9af746f837e76f1", "object": "Rate", "created_at": - "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b5a25013c63d4ab2af728f6272e5774e", "object": "Rate", "created_at": - "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", - "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": - "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0bd299f91b63445ea20652ad932a3552", + "object": "Rate", "created_at": "2024-08-15T19:53:10Z", "updated_at": "2024-08-15T19:53:10Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": "Address", "created_at": - "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_80279d23931641a884289c4d529446e0", - "object": "Shipment"}, {"created_at": "2024-06-14T16:51:37Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + {}}, "forms": [], "fees": [], "id": "shp_8aca1d83b9e044e78561d5931fa49e1e", + "object": "Shipment"}, {"created_at": "2024-08-15T19:53:09Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:37Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": - "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:09Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_91a75b20226041348d9de7edf07471d0", "parcel": {"id": "prcl_e41a68cdb6c44f2a8971d4158028c72c", - "object": "Parcel", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "order_5d3d965a86bd4a7fa08a685be2d7cb88", "parcel": {"id": "prcl_0c0c31d3bdfd434ebf4021bc15cc35e9", + "object": "Parcel", "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:09Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_212643ba6221471786a09bed77c98c82", - "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_70a52e9cb8df43019b1683f857d60a6c", + "object": "Rate", "created_at": "2024-08-15T19:53:11Z", "updated_at": "2024-08-15T19:53:11Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_840e09a074a54b25925a671bdbfbee03", - "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + 1, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ea44ec1a9dd048f0bb0107f4ffaa191a", + "object": "Rate", "created_at": "2024-08-15T19:53:11Z", "updated_at": "2024-08-15T19:53:11Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7bc2e73929524157b9b5fd7be5d3f8ba", - "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + 2, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a7da3edc49ae42ac88d47fba0ef29c76", + "object": "Rate", "created_at": "2024-08-15T19:53:11Z", "updated_at": "2024-08-15T19:53:11Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e9ad4d00035a4c9eb5da1f1f309297b6", - "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_92f43ef6fcec4933b55b11f064d39f36", "object": "Rate", "created_at": - "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": - "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": "Address", "created_at": - "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_fa34c962e839466a9758f7a0f7def586", - "object": "Shipment"}], "rates": [{"id": "rate_3182017060824864bdf0efe7be24eb1b", + {}}, "forms": [], "fees": [], "id": "shp_b9d8307e3aa84c55a3e079a36b703e00", + "object": "Shipment"}], "rates": [{"id": "rate_6cf0ffa1024442a890528f1f5d3e1133", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", + "service": "Priority", "carrier": "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_d2a8e32c15d6430cb1dd220bf9ded63f", "object": "Rate", "created_at": + "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_1ad3cc8441ea47c2a762e872f109623e", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": - "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6b8f1ab432744d23b59e831d5752c13e", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "First", "carrier": "USPS", "rate": "11.33", "currency": "USD", - "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_0cffbf229b104252b9af746f837e76f1", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": - "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5a25013c63d4ab2af728f6272e5774e", + "est_delivery_days": 3, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0bd299f91b63445ea20652ad932a3552", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_91a75b20226041348d9de7edf07471d0", "object": "Order"}' + "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_5d3d965a86bd4a7fa08a685be2d7cb88", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '18372' + - '16329' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_91a75b20226041348d9de7edf07471d0 + - /api/v2/orders/order_5d3d965a86bd4a7fa08a685be2d7cb88 pragma: - no-cache referrer-policy: @@ -289,20 +262,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 9a93413e666c7519e78b0a45000b051b + - 62c1f5dd66be5ca5e788618200172dd0 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.325916' + - '2.126092' x-version-label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -322,229 +295,195 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/orders/order_91a75b20226041348d9de7edf07471d0/rates + uri: https://api.easypost.com/v2/orders/order_5d3d965a86bd4a7fa08a685be2d7cb88/rates response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:37Z", - "updated_at": "2024-06-14T16:51:38Z", "customs_info": null, "from_address": - {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": "Address", "created_at": - "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}], "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:11Z", + "customs_info": null, "from_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", + {}}, "return_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-06-14T16:51:37Z", "is_return": false, + {}}, "shipments": [{"created_at": "2024-08-15T19:53:09Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2024-06-14T16:51:37Z", "batch_id": null, + "tracking_code": null, "updated_at": "2024-08-15T19:53:09Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": "Address", "created_at": - "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": + {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_91a75b20226041348d9de7edf07471d0", - "parcel": {"id": "prcl_dc600cd512fd431f86845b673e5988ca", "object": "Parcel", - "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + {}}, "insurance": null, "order_id": "order_5d3d965a86bd4a7fa08a685be2d7cb88", + "parcel": {"id": "prcl_32b7696639ae47debdb603b25bf9cdac", "object": "Parcel", + "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:09Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_62bbbb46c7ad4008933f0d18886f151c", - "object": "Rate", "created_at": "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_7086e066d5e749738ef724f6dd417672", + "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0e41b25a192c4b129e217f3d2640ebba", + "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53: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_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fd9629efd25846e2ab795ffec09cc732", + "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4c7cdf012861434e92a61f1fbf692b86", - "object": "Rate", "created_at": "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b0c8e9ee3d104fa8bcc66464336d3358", "object": "Rate", "created_at": - "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9d161975ffef447d9dd1aca767e6a2d2", "object": "Rate", "created_at": - "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", - "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b5ab6b8b885f4b6c83a53c0b5d4b2129", "object": "Rate", "created_at": - "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "6.88", "currency": "USD", - "retail_rate": "9.80", "retail_currency": "USD", "list_rate": "8.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": - "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": "Address", "created_at": - "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_80279d23931641a884289c4d529446e0", - "object": "Shipment"}, {"created_at": "2024-06-14T16:51:37Z", "is_return": + {}}, "forms": [], "fees": [], "id": "shp_8aca1d83b9e044e78561d5931fa49e1e", + "object": "Shipment"}, {"created_at": "2024-08-15T19:53:09Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2024-06-14T16:51:37Z", "batch_id": null, + "tracking_code": null, "updated_at": "2024-08-15T19:53:09Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": "Address", "created_at": - "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": + {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_91a75b20226041348d9de7edf07471d0", - "parcel": {"id": "prcl_e41a68cdb6c44f2a8971d4158028c72c", "object": "Parcel", - "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + {}}, "insurance": null, "order_id": "order_5d3d965a86bd4a7fa08a685be2d7cb88", + "parcel": {"id": "prcl_0c0c31d3bdfd434ebf4021bc15cc35e9", "object": "Parcel", + "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:09Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_68ad33cd49324cc29f5dd4f7a4d750f4", - "object": "Rate", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_a52b605100fe4ca2afd085210378b2b0", + "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5d29af059a1b499aab24d25a3d9cfa2a", + "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2c622936a85a4184a018a6a178752326", - "object": "Rate", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + 2, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b0968651d7544b20bd39d8c3f94c2214", + "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5131e9bd0dba4642aca3a2f70e5e6bb3", - "object": "Rate", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_5d5a27a7bc794da2a28cd61e93935644", "object": "Rate", "created_at": - "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_195fcac90b9241099fb442a74bb167cc", "object": "Rate", "created_at": - "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", - "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": - "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": + "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": "Address", "created_at": - "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_fa34c962e839466a9758f7a0f7def586", - "object": "Shipment"}], "rates": [{"id": "rate_62bbbb46c7ad4008933f0d18886f151c", + {}}, "forms": [], "fees": [], "id": "shp_b9d8307e3aa84c55a3e079a36b703e00", + "object": "Shipment"}], "rates": [{"id": "rate_7086e066d5e749738ef724f6dd417672", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_4c7cdf012861434e92a61f1fbf692b86", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b0c8e9ee3d104fa8bcc66464336d3358", + "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", + "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_0e41b25a192c4b129e217f3d2640ebba", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": + "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": + "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 2, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fd9629efd25846e2ab795ffec09cc732", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9d161975ffef447d9dd1aca767e6a2d2", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "Express", "carrier": - "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": - "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 1, "shipment_id": "shp_80279d23931641a884289c4d529446e0", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5ab6b8b885f4b6c83a53c0b5d4b2129", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", - "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_91a75b20226041348d9de7edf07471d0", "object": "Order"}' + "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_5d3d965a86bd4a7fa08a685be2d7cb88", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '16526' + - '13927' content-type: - application/json; charset=utf-8 expires: @@ -559,27 +498,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 9a93413e666c751be78b0a45000b06a9 + - 62c1f5dd66be5ca7e788618200173004 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '2.503888' + - '1.536618' x-version-label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_lowest_rate.yaml b/tests/cassettes/test_order_lowest_rate.yaml index 0f66c763..70443d63 100644 --- a/tests/cassettes/test_order_lowest_rate.yaml +++ b/tests/cassettes/test_order_lowest_rate.yaml @@ -27,253 +27,226 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": + "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:45Z", - "updated_at": "2024-06-14T16:51:47Z", "customs_info": null, "from_address": - {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "to_address": {"id": "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}], "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:18Z", + "customs_info": null, "from_address": {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": + "2024-08-15T19:53:16+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_03a687315b4011ef8125ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": + "2024-08-15T19:53:16+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_03a687315b4011ef8125ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", + {}}, "return_address": {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-06-14T16:51:45Z", "is_return": false, - "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + {}}, "shipments": [{"created_at": "2024-08-15T19:53:16Z", "is_return": false, + "messages": [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:45Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", - "object": "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": - "2024-06-14T16:51:45+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:16Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": + "2024-08-15T19:53:16+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_9e267ccf8e54444f870f831e80f93933", "parcel": {"id": "prcl_9df48eab7efd42489b3ca4d7f682cfa7", - "object": "Parcel", "created_at": "2024-06-14T16:51:45Z", "updated_at": "2024-06-14T16:51:45Z", + "order_55ebdec2115446e7aa1e44cfe1ca07b5", "parcel": {"id": "prcl_ec74a6a2c1e44beaa983430e62db545c", + "object": "Parcel", "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:16Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_f7926ce57aa64292861e34e5fb516461", - "object": "Rate", "created_at": "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6f666a3abf11497fa4f8e5e65b42bbb2", + "object": "Rate", "created_at": "2024-08-15T19:53:17Z", "updated_at": "2024-08-15T19:53: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": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9c91d583f9344c918f8266bd27a724d3", - "object": "Rate", "created_at": "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + 1, "shipment_id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ca437f7773844326b8130ed736d9b1c4", + "object": "Rate", "created_at": "2024-08-15T19:53:17Z", "updated_at": "2024-08-15T19:53: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_68d9555320634c38beb2bd388e594e37", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_630dcc0179aa4dbab807736c96e8f240", - "object": "Rate", "created_at": "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", + 2, "shipment_id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c70cd64b7b9f4bcc924be3011fb6f3f7", + "object": "Rate", "created_at": "2024-08-15T19:53:17Z", "updated_at": "2024-08-15T19:53:17Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a8a4fbeec6394e50b7e0b40c338bccb0", - "object": "Rate", "created_at": "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_dffe8b9eec5648daae8301a609341c26", "object": "Rate", "created_at": - "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", - "object": "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": - "2024-06-14T16:51:45+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_03a687315b4011ef8125ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": + "2024-08-15T19:53:16+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": "Address", "created_at": - "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "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_03a687315b4011ef8125ac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_68d9555320634c38beb2bd388e594e37", - "object": "Shipment"}, {"created_at": "2024-06-14T16:51:45Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + {}}, "forms": [], "fees": [], "id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", + "object": "Shipment"}, {"created_at": "2024-08-15T19:53:16Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:45Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", - "object": "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": - "2024-06-14T16:51:45+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:17Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": + "2024-08-15T19:53:16+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_9e267ccf8e54444f870f831e80f93933", "parcel": {"id": "prcl_5c968711cc9f48b1b011004283aeaa20", - "object": "Parcel", "created_at": "2024-06-14T16:51:45Z", "updated_at": "2024-06-14T16:51:45Z", + "order_55ebdec2115446e7aa1e44cfe1ca07b5", "parcel": {"id": "prcl_ded980f1739d47ebb674a17457443d92", + "object": "Parcel", "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:16Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_b4217b9798864d18a67b2176efeef38d", - "object": "Rate", "created_at": "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_86df3ceb5a5f4f68aa373ee6f3ae5c23", + "object": "Rate", "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2b2479bbca50441dbbe4517bf38fded9", - "object": "Rate", "created_at": "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + 1, "shipment_id": "shp_477a40295471463783f49cdb0a37143c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b08ca005a03d43c3b74bef50746b71b1", + "object": "Rate", "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9805849118f346489371b1bf7182a1a5", - "object": "Rate", "created_at": "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + 2, "shipment_id": "shp_477a40295471463783f49cdb0a37143c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d54ef86aead34d4ca41802e0f8cc0f2b", + "object": "Rate", "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b568493fc89a47a484cfee8df55309b5", - "object": "Rate", "created_at": "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_8bdb273d397f41c29f0432e75941f366", "object": "Rate", "created_at": - "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": - "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", - "object": "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": - "2024-06-14T16:51:45+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_477a40295471463783f49cdb0a37143c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_03a687315b4011ef8125ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": + "2024-08-15T19:53:16+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": "Address", "created_at": - "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "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_03a687315b4011ef8125ac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_6478f36289ca4671b5e4bff4760ed634", - "object": "Shipment"}], "rates": [{"id": "rate_f7926ce57aa64292861e34e5fb516461", + {}}, "forms": [], "fees": [], "id": "shp_477a40295471463783f49cdb0a37143c", + "object": "Shipment"}], "rates": [{"id": "rate_6f666a3abf11497fa4f8e5e65b42bbb2", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9c91d583f9344c918f8266bd27a724d3", "object": "Rate", "created_at": + "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_ca437f7773844326b8130ed736d9b1c4", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": - "USPS", "rate": "13.79", "currency": "USD", "retail_rate": "22.30", "retail_currency": + "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_68d9555320634c38beb2bd388e594e37", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_630dcc0179aa4dbab807736c96e8f240", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_a8a4fbeec6394e50b7e0b40c338bccb0", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_68d9555320634c38beb2bd388e594e37", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dffe8b9eec5648daae8301a609341c26", + "est_delivery_days": 2, "shipment_id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c70cd64b7b9f4bcc924be3011fb6f3f7", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_9e267ccf8e54444f870f831e80f93933", "object": "Order"}' + "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_55ebdec2115446e7aa1e44cfe1ca07b5", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '18372' + - '16329' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_9e267ccf8e54444f870f831e80f93933 + - /api/v2/orders/order_55ebdec2115446e7aa1e44cfe1ca07b5 pragma: - no-cache referrer-policy: @@ -289,20 +262,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 9a93413c666c7521e78b0a60000b0d82 + - 62c1f5dc66be5cace78861c1001734c2 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '2.165725' + - '1.352484' x-version-label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_retrieve.yaml b/tests/cassettes/test_order_retrieve.yaml index b160e5a3..a34f6251 100644 --- a/tests/cassettes/test_order_retrieve.yaml +++ b/tests/cassettes/test_order_retrieve.yaml @@ -27,253 +27,226 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:35Z", - "updated_at": "2024-06-14T16:51:37Z", "customs_info": null, "from_address": - {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": "Address", "created_at": - "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}], "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:08Z", + "customs_info": null, "from_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", + {}}, "return_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-06-14T16:51:35Z", "is_return": false, - "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + {}}, "shipments": [{"created_at": "2024-08-15T19:53:07Z", "is_return": false, + "messages": [{"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:35Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": - "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:07Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_a33ebd4c336a43dd9d1c34c4b1366e97", "parcel": {"id": "prcl_466fcdbe430448e1a13fd0282dd45f21", - "object": "Parcel", "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + "order_e092db090c4d4a8981233e064745de34", "parcel": {"id": "prcl_657469de0ffb4bdfb3b7dd2ace077079", + "object": "Parcel", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_d36ff10756194f0e88bf3f612b86b1e4", - "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c1993d23e977404586b2c5cac9b6c574", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d568dc20f021445ca51fa5d55f24dac5", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53: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_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eb170b0f530d46928e5f1911caa4f87b", - "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", + 2, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_34a8acc9977b423a99c8f9a7e77f6634", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19353f69754a46069b879c2fde5deb07", - "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7f2d07d094c740438f666afe3c51e8ae", "object": "Rate", "created_at": - "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b1903ca5290641778c5cc6421cfcb17e", "object": "Rate", "created_at": - "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", - "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": - "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_7ebbd6c65c454034a5d82c738ff448e0", - "object": "Shipment"}, {"created_at": "2024-06-14T16:51:35Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + {}}, "forms": [], "fees": [], "id": "shp_ca385720de3b442ea1e7595221632ea8", + "object": "Shipment"}, {"created_at": "2024-08-15T19:53:07Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-06-14T16:51:35Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": - "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:53:07Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_a33ebd4c336a43dd9d1c34c4b1366e97", "parcel": {"id": "prcl_de7a8f81b5a4472b8406ba4d7f27c06a", - "object": "Parcel", "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + "order_e092db090c4d4a8981233e064745de34", "parcel": {"id": "prcl_36fbf4fbe3ce4d05a996511925495e78", + "object": "Parcel", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0f93bed45eab4a23a712f8f16301192b", - "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6e0d7f38d0fd46fbbe37e1945cf0179a", - "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_446cf3829bb34215a70b6bcc197421fb", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6d6602acef0a4824bbdfd80ecb7f5046", - "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + 2, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f1a0224097d64e729fafd7ed3eb6ba18", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dd957d0a962846359fd34952043ba5df", - "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_77c94641dd024b83bfe4a6943d040506", "object": "Rate", "created_at": - "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": - "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c11e02096ff841fdb8ffb8cba81df971", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", - "object": "Shipment"}], "rates": [{"id": "rate_d36ff10756194f0e88bf3f612b86b1e4", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", - "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_eb170b0f530d46928e5f1911caa4f87b", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": - "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19353f69754a46069b879c2fde5deb07", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "First", "carrier": "USPS", "rate": "11.33", "currency": "USD", - "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7f2d07d094c740438f666afe3c51e8ae", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": - "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b1903ca5290641778c5cc6421cfcb17e", + {}}, "forms": [], "fees": [], "id": "shp_24121dc814f84dca86a0b5b16dfe037f", + "object": "Shipment"}], "rates": [{"id": "rate_c1993d23e977404586b2c5cac9b6c574", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_a33ebd4c336a43dd9d1c34c4b1366e97", "object": "Order"}' + "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_d568dc20f021445ca51fa5d55f24dac5", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": + "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": + "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 2, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_34a8acc9977b423a99c8f9a7e77f6634", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.40", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_e092db090c4d4a8981233e064745de34", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '18372' + - '16329' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_a33ebd4c336a43dd9d1c34c4b1366e97 + - /api/v2/orders/order_e092db090c4d4a8981233e064745de34 pragma: - no-cache referrer-policy: @@ -289,20 +262,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 9a93413c666c7517e78b0a43000b0308 + - 62c1f5d966be5ca3e788618100172bb4 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.403581' + - '1.530456' x-version-label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -322,229 +295,195 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/orders/order_a33ebd4c336a43dd9d1c34c4b1366e97 + uri: https://api.easypost.com/v2/orders/order_e092db090c4d4a8981233e064745de34 response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:35Z", - "updated_at": "2024-06-14T16:51:37Z", "customs_info": null, "from_address": - {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": "Address", "created_at": - "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}], "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:08Z", + "customs_info": null, "from_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", + {}}, "return_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-06-14T16:51:35Z", "is_return": false, + {}}, "shipments": [{"created_at": "2024-08-15T19:53:07Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2024-06-14T16:51:35Z", "batch_id": null, + "tracking_code": null, "updated_at": "2024-08-15T19:53:07Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": "Address", "created_at": - "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": + {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_a33ebd4c336a43dd9d1c34c4b1366e97", - "parcel": {"id": "prcl_466fcdbe430448e1a13fd0282dd45f21", "object": "Parcel", - "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + {}}, "insurance": null, "order_id": "order_e092db090c4d4a8981233e064745de34", + "parcel": {"id": "prcl_657469de0ffb4bdfb3b7dd2ace077079", "object": "Parcel", + "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_d36ff10756194f0e88bf3f612b86b1e4", - "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c1993d23e977404586b2c5cac9b6c574", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d568dc20f021445ca51fa5d55f24dac5", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53: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_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eb170b0f530d46928e5f1911caa4f87b", - "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", + 2, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_34a8acc9977b423a99c8f9a7e77f6634", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19353f69754a46069b879c2fde5deb07", - "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7f2d07d094c740438f666afe3c51e8ae", "object": "Rate", "created_at": - "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": - "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b1903ca5290641778c5cc6421cfcb17e", "object": "Rate", "created_at": - "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", - "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": - "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_7ebbd6c65c454034a5d82c738ff448e0", - "object": "Shipment"}, {"created_at": "2024-06-14T16:51:35Z", "is_return": + {}}, "forms": [], "fees": [], "id": "shp_ca385720de3b442ea1e7595221632ea8", + "object": "Shipment"}, {"created_at": "2024-08-15T19:53:07Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2024-06-14T16:51:35Z", "batch_id": null, + "tracking_code": null, "updated_at": "2024-08-15T19:53:07Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": "Address", "created_at": - "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": + {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_a33ebd4c336a43dd9d1c34c4b1366e97", - "parcel": {"id": "prcl_de7a8f81b5a4472b8406ba4d7f27c06a", "object": "Parcel", - "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + {}}, "insurance": null, "order_id": "order_e092db090c4d4a8981233e064745de34", + "parcel": {"id": "prcl_36fbf4fbe3ce4d05a996511925495e78", "object": "Parcel", + "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0f93bed45eab4a23a712f8f16301192b", - "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6e0d7f38d0fd46fbbe37e1945cf0179a", - "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_446cf3829bb34215a70b6bcc197421fb", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6d6602acef0a4824bbdfd80ecb7f5046", - "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + 2, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f1a0224097d64e729fafd7ed3eb6ba18", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dd957d0a962846359fd34952043ba5df", - "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_77c94641dd024b83bfe4a6943d040506", "object": "Rate", "created_at": - "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": - "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": - "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", - "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": - "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c11e02096ff841fdb8ffb8cba81df971", + "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": + "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": "Address", "created_at": - "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", - "object": "Shipment"}], "rates": [{"id": "rate_d36ff10756194f0e88bf3f612b86b1e4", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", - "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_eb170b0f530d46928e5f1911caa4f87b", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": - "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19353f69754a46069b879c2fde5deb07", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "First", "carrier": "USPS", "rate": "11.33", "currency": "USD", - "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7f2d07d094c740438f666afe3c51e8ae", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": - "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b1903ca5290641778c5cc6421cfcb17e", + {}}, "forms": [], "fees": [], "id": "shp_24121dc814f84dca86a0b5b16dfe037f", + "object": "Shipment"}], "rates": [{"id": "rate_c1993d23e977404586b2c5cac9b6c574", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_a33ebd4c336a43dd9d1c34c4b1366e97", "object": "Order"}' + "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_d568dc20f021445ca51fa5d55f24dac5", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": + "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": + "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 2, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_34a8acc9977b423a99c8f9a7e77f6634", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.40", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_e092db090c4d4a8981233e064745de34", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '16526' + - '13927' content-type: - application/json; charset=utf-8 expires: @@ -564,20 +503,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 9a93413c666c7519e78b0a43000b04ae + - 62c1f5d966be5ca4e788618100172d6b x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.157084' + - '0.142965' x-version-label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_parcel_create.yaml b/tests/cassettes/test_parcel_create.yaml index 91a9b2d0..a60a4fea 100644 --- a/tests/cassettes/test_parcel_create.yaml +++ b/tests/cassettes/test_parcel_create.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_d751133015c84411adcd073cf5c235b8", "object": "Parcel", - "created_at": "2023-05-15T21:03:26Z", "updated_at": "2023-05-15T21:03:26Z", + string: '{"id": "prcl_fb3eae01fdcf42e78cd53257aa56740e", "object": "Parcel", + "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -31,12 +31,10 @@ interactions: - '229' content-type: - application/json; charset=utf-8 - etag: - - W/"f50be1b80cfb0538b6c397ab8498ec12" expires: - '0' location: - - /api/prcl_d751133015c84411adcd073cf5c235b8/parcels + - /api/v2/parcels/prcl_fb3eae01fdcf42e78cd53257aa56740e pragma: - no-cache referrer-policy: @@ -47,26 +45,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 36ec0a9264629e1ee2b976d20033d474 + - 62c1f5d866be5caee78861c20017363f x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb4wdc 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.029316' + - '0.027840' x-version-label: - - easypost-202305151948-2ffaad026d-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_parcel_retrieve.yaml b/tests/cassettes/test_parcel_retrieve.yaml index 8f13bb9e..927bbbaa 100644 --- a/tests/cassettes/test_parcel_retrieve.yaml +++ b/tests/cassettes/test_parcel_retrieve.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_7777c681ff90424f9ac2ee9b05c3e791", "object": "Parcel", - "created_at": "2023-05-15T21:03:26Z", "updated_at": "2023-05-15T21:03:26Z", + string: '{"id": "prcl_1ee652c8f0644a0f9aa19b15175d3450", "object": "Parcel", + "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -31,12 +31,10 @@ interactions: - '229' content-type: - application/json; charset=utf-8 - etag: - - W/"4f084e94361e31e106f58be10a1ad081" expires: - '0' location: - - /api/prcl_7777c681ff90424f9ac2ee9b05c3e791/parcels + - /api/v2/parcels/prcl_1ee652c8f0644a0f9aa19b15175d3450 pragma: - no-cache referrer-policy: @@ -47,27 +45,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 44e495b364629e1ee2b976d3003563cd + - 62c1f5d666be5caee78861c300173687 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.041070' + - '0.034451' x-version-label: - - easypost-202305151948-2ffaad026d-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -87,11 +83,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/parcels/prcl_7777c681ff90424f9ac2ee9b05c3e791 + uri: https://api.easypost.com/v2/parcels/prcl_1ee652c8f0644a0f9aa19b15175d3450 response: body: - string: '{"id": "prcl_7777c681ff90424f9ac2ee9b05c3e791", "object": "Parcel", - "created_at": "2023-05-15T21:03:26Z", "updated_at": "2023-05-15T21:03:26Z", + string: '{"id": "prcl_1ee652c8f0644a0f9aa19b15175d3450", "object": "Parcel", + "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -101,8 +97,6 @@ interactions: - '229' content-type: - application/json; charset=utf-8 - etag: - - W/"4f084e94361e31e106f58be10a1ad081" expires: - '0' pragma: @@ -120,20 +114,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b364629e1fe2b976d3003563f5 + - 62c1f5d666be5caee78861c3001736b2 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.018883' + - '0.022152' x-version-label: - - easypost-202305151948-2ffaad026d-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_all.yaml b/tests/cassettes/test_pickup_all.yaml index 414936cd..e5a6c08c 100644 --- a/tests/cassettes/test_pickup_all.yaml +++ b/tests/cassettes/test_pickup_all.yaml @@ -16,61 +16,61 @@ interactions: uri: https://api.easypost.com/v2/pickups?page_size=5 response: body: - string: '{"pickups": [{"id": "pickup_9860cb6ae0bd4f149c53248ff9048351", "object": - "Pickup", "created_at": "2023-11-28T22:00:12Z", "updated_at": "2023-11-28T22:00:12Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", - "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"pickups": [{"id": "pickup_01ab23e45845440b89921fb1607bfe67", "object": + "Pickup", "created_at": "2024-08-16T15:46:46Z", "updated_at": "2024-08-16T15:46:46Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_80c1cd288e3911eeb61a3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:00:11+00:00", "updated_at": "2023-11-28T22:00:11+00:00", "name": + "adr_be3012c35be611ef8d11ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-16T15:46:46+00:00", "updated_at": "2024-08-16T15:46:46+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:12Z", - "updated_at": "2023-11-28T22:00:12Z", "carrier": "USPS", "pickup_id": "pickup_9860cb6ae0bd4f149c53248ff9048351", - "id": "pickuprate_d3971cc0f27b4af3a1b9ef31c419a1e8", "object": "PickupRate"}]}, - {"id": "pickup_d49471d988984148ae3138550e148a94", "object": "Pickup", "created_at": - "2023-11-28T21:58:39Z", "updated_at": "2023-11-28T21:58:39Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:47Z", + "updated_at": "2024-08-16T15:46:47Z", "carrier": "USPS", "pickup_id": "pickup_01ab23e45845440b89921fb1607bfe67", + "id": "pickuprate_f9946c5995eb4af5b741d6d56e47a3b6", "object": "PickupRate"}]}, + {"id": "pickup_ca2a288624fa4e1fbd68bdc6f98b8022", "object": "Pickup", "created_at": + "2024-08-15T20:41:54Z", "updated_at": "2024-08-15T20:41:54Z", "mode": "test", + "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_49e2f6fd8e3911ee966a3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T21:58:39+00:00", "updated_at": "2023-11-28T21:58:39+00:00", "name": + "adr_ce87f1b15b4611ef91153cecef1b359e", "object": "Address", "created_at": + "2024-08-15T20:41:54+00:00", "updated_at": "2024-08-15T20:41:54+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_cad32c3f692a4d0cb29668e5b08a2de2", - "object": "Pickup", "created_at": "2023-11-28T21:58:37Z", "updated_at": "2023-11-28T21:58:37Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_fa75131fa31943498db31c074e290add", + "object": "Pickup", "created_at": "2024-08-15T20:41:52Z", "updated_at": "2024-08-15T20:41:52Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_489be89c8e3911ee95813cecef1b359e", "object": "Address", "created_at": - "2023-11-28T21:58:37+00:00", "updated_at": "2023-11-28T21:58:37+00:00", "name": + "adr_cd660b0a5b4611efb09cac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T20:41:52+00:00", "updated_at": "2024-08-15T20:41:52+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_b6285245bcb44a898242d20d0c0675f8", - "object": "Pickup", "created_at": "2023-11-28T21:58:35Z", "updated_at": "2023-11-28T21:58:35Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_a4c87194b51f421a8312738633e09606", + "object": "Pickup", "created_at": "2024-08-15T20:41:50Z", "updated_at": "2024-08-15T20:41:50Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_476155358e3911eea42eac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T21:58:35+00:00", "updated_at": "2023-11-28T21:58:35+00:00", "name": + "adr_cc523a585b4611ef90633cecef1b359e", "object": "Address", "created_at": + "2024-08-15T20:41:50+00:00", "updated_at": "2024-08-15T20:41:50+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_4e99467097794cf1aa6421c58173a05e", - "object": "Pickup", "created_at": "2023-11-28T21:58:33Z", "updated_at": "2023-11-28T21:58:33Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_d6e8568063a7477c969b7fb183f473cd", + "object": "Pickup", "created_at": "2024-08-15T20:41:48Z", "updated_at": "2024-08-15T20:41:48Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_460a0a0b8e3911ee9f86ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T21:58:33+00:00", "updated_at": "2023-11-28T21:58:33+00:00", "name": + "adr_cb32b7005b4611ef801dac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T20:41:48+00:00", "updated_at": "2024-08-15T20:41:48+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -100,20 +100,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8f656662ede78a93cf003d0c08 + - 8a4bf43c66bf7468e786a2dc00331191 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.224201' + - '0.233218' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_buy.yaml b/tests/cassettes/test_pickup_buy.yaml index 5a7f353a..8df7bd2b 100644 --- a/tests/cassettes/test_pickup_buy.yaml +++ b/tests/cassettes/test_pickup_buy.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:00:17Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-16T15:46:52Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285856291", "updated_at": "2023-11-28T22:00:18Z", "batch_id": + "9400100105807076059112", "updated_at": "2024-08-16T15:46:53Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_83f170d58e3911ee873eac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:00:17+00:00", "updated_at": "2023-11-28T22:00:17+00:00", "name": + {"id": "adr_c1e3f9ae5be611ef8b2dac1f6bc539aa", "object": "Address", "created_at": + "2024-08-16T15:46:52+00:00", "updated_at": "2024-08-16T15:46:52+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_011a5106c63a4a869af1574a9cb1295b", - "object": "Parcel", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_a9eb633723004fcfbc13d4cfd1721c67", + "object": "Parcel", "created_at": "2024-08-16T15:46:52Z", "updated_at": "2024-08-16T15:46:52Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ce835644536345aca77e9c8f6c23fd69", - "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:18Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00:17Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_dc69359118c94b2dbcc85ad62a661596", + "created_at": "2024-08-16T15:46:53Z", "updated_at": "2024-08-16T15:46:53Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:46:53Z", "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/20231128/e80e3b6e6784ad421b9f5d0d2020208171.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e889e33fc22e234e5ea06400dcc59fd4f5.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_757b5f5fbdd3400c88098d392284b948", "object": - "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a3405beda1794a3d90fc677ddce4a333", - "object": "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f4b1543a807d42c7a64d9a1ef23eacc6", "object": + "Rate", "created_at": "2024-08-16T15:46:52Z", "updated_at": "2024-08-16T15:46:52Z", + "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_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6ad812b5a2534024a39a20136ac02305", - "object": "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", + 2, "shipment_id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_04d542e1de6a48a2b27f2b6df5018765", + "object": "Rate", "created_at": "2024-08-16T15:46:52Z", "updated_at": "2024-08-16T15:46:52Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_33fc2f8fc15f4fb9bb8048f35565561d", - "object": "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b1e00e330b5f4451845098815861c084", "object": "Rate", "created_at": - "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_33fc2f8fc15f4fb9bb8048f35565561d", - "object": "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_48c9c1b2c59549bd98ed677edf228e3d", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285856291", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:00:18Z", "updated_at": - "2023-11-28T22:00:18Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier": "USPS", + 3, "shipment_id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e4328dec01664a10b49aeb9d785685ef", + "object": "Rate", "created_at": "2024-08-16T15:46:52Z", "updated_at": "2024-08-16T15:46:52Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_04d542e1de6a48a2b27f2b6df5018765", "object": + "Rate", "created_at": "2024-08-16T15:46:53Z", "updated_at": "2024-08-16T15:46:53Z", + "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_308e08cc58ed4d22876a35f6c5280cc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b97ca0eff21e4b4aa43bece94fcec9d0", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059112", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:46:53Z", + "updated_at": "2024-08-16T15:46:53Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzQ4YzljMWIyYzU5NTQ5YmQ5OGVkNjc3ZWRmMjI4ZTNk"}, - "to_address": {"id": "adr_83eebd748e3911ee873cac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T22:00:17+00:00", "updated_at": "2023-11-28T22:00:17+00:00", + "https://track.easypost.com/djE6dHJrX2I5N2NhMGVmZjIxZTRiNGFhNDNiZWNlOTRmY2VjOWQw"}, + "to_address": {"id": "adr_c1e22e865be611ef8b2cac1f6bc539aa", "object": "Address", + "created_at": "2024-08-16T15:46:52+00:00", "updated_at": "2024-08-16T15:46:52+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_83f170d58e3911ee873eac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:00:17+00:00", "updated_at": - "2023-11-28T22:00:17+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_c1e3f9ae5be611ef8b2dac1f6bc539aa", + "object": "Address", "created_at": "2024-08-16T15:46:52+00:00", "updated_at": + "2024-08-16T15:46:52+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_83eebd748e3911ee873cac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:00:17+00:00", "updated_at": "2023-11-28T22:00:17+00:00", "name": + "adr_c1e22e865be611ef8b2cac1f6bc539aa", "object": "Address", "created_at": + "2024-08-16T15:46:52+00:00", "updated_at": "2024-08-16T15:46:52+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_92808ee9dfe448e6967aca69cc5b10ee", "object": + "refunded": false}], "id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_92808ee9dfe448e6967aca69cc5b10ee + - /api/v2/shipments/shp_308e08cc58ed4d22876a35f6c5280cc1 pragma: - no-cache referrer-policy: @@ -151,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b4656662f1e78a93e9003d98dc + - 8a4bf43e66bf746ce786a2f6003315e0 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '1.077627' + - '1.042773' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -174,8 +161,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_92808ee9dfe448e6967aca69cc5b10ee"}}}' + "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_308e08cc58ed4d22876a35f6c5280cc1"}}}' headers: Accept: - '*/*' @@ -195,21 +182,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_0484cf545d724d24b56591a64bb5b9da", "object": "Pickup", - "created_at": "2023-11-28T22:00:18Z", "updated_at": "2023-11-28T22:00:18Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", - "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_494caf8885524ab9af07a4689e4b4e47", "object": "Pickup", + "created_at": "2024-08-16T15:46:53Z", "updated_at": "2024-08-16T15:46:53Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_84a793d78e3911ee8ed2ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:00:18+00:00", "updated_at": "2023-11-28T22:00:18+00:00", "name": + "adr_c295906f5be611ef8f45ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-16T15:46:53+00:00", "updated_at": "2024-08-16T15:46:53+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:19Z", - "updated_at": "2023-11-28T22:00:19Z", "carrier": "USPS", "pickup_id": "pickup_0484cf545d724d24b56591a64bb5b9da", - "id": "pickuprate_114fca71b6c1493993f617050a05517c", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:54Z", + "updated_at": "2024-08-16T15:46:54Z", "carrier": "USPS", "pickup_id": "pickup_494caf8885524ab9af07a4689e4b4e47", + "id": "pickuprate_a772332c1f47418ca25986f7a7f0e7dc", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -234,20 +221,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b4656662f2e78a93e9003d9a80 + - 8a4bf43e66bf746de786a2f60033170e x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.771089' + - '1.204295' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -271,24 +258,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/pickups/pickup_0484cf545d724d24b56591a64bb5b9da/buy + uri: https://api.easypost.com/v2/pickups/pickup_494caf8885524ab9af07a4689e4b4e47/buy response: body: - string: '{"id": "pickup_0484cf545d724d24b56591a64bb5b9da", "object": "Pickup", - "created_at": "2023-11-28T22:00:18Z", "updated_at": "2023-11-28T22:00:20Z", + string: '{"id": "pickup_494caf8885524ab9af07a4689e4b4e47", "object": "Pickup", + "created_at": "2024-08-16T15:46:53Z", "updated_at": "2024-08-16T15:46:56Z", "mode": "test", "status": "scheduled", "reference": null, "min_datetime": - "2023-12-17T00:00:00Z", "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": + "2024-08-17T00:00:00Z", "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": - "WTC63763636", "address": {"id": "adr_84a793d78e3911ee8ed2ac1f6bc539ae", "object": - "Address", "created_at": "2023-11-28T22:00:18+00:00", "updated_at": "2023-11-28T22:00:18+00:00", + "WTC64761768", "address": {"id": "adr_c295906f5be611ef8f45ac1f6bc539ae", "object": + "Address", "created_at": "2024-08-16T15:46:53+00:00", "updated_at": "2024-08-16T15:46:53+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:19Z", - "updated_at": "2023-11-28T22:00:19Z", "carrier": "USPS", "pickup_id": "pickup_0484cf545d724d24b56591a64bb5b9da", - "id": "pickuprate_114fca71b6c1493993f617050a05517c", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:54Z", + "updated_at": "2024-08-16T15:46:54Z", "carrier": "USPS", "pickup_id": "pickup_494caf8885524ab9af07a4689e4b4e47", + "id": "pickuprate_a772332c1f47418ca25986f7a7f0e7dc", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -313,20 +300,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b4656662f3e78a93e9003d9b8c + - 8a4bf43e66bf746ee786a2f600331855 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.833980' + - '1.548394' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_cancel.yaml b/tests/cassettes/test_pickup_cancel.yaml index dce1fe7e..828afb59 100644 --- a/tests/cassettes/test_pickup_cancel.yaml +++ b/tests/cassettes/test_pickup_cancel.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:00:20Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-16T15:46:56Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285856390", "updated_at": "2023-11-28T22:00:21Z", "batch_id": + "9400100105807076059136", "updated_at": "2024-08-16T15:46:57Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_85f19f718e3911ee8561ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:00:20+00:00", "updated_at": "2023-11-28T22:00:20+00:00", "name": + {"id": "adr_c464aa865be611efbad13cecef1b359e", "object": "Address", "created_at": + "2024-08-16T15:46:56+00:00", "updated_at": "2024-08-16T15:46:56+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_3a4aab299b3c467e979d8bb41c3ee9d2", - "object": "Parcel", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_cfbd75398e714a5cab06ff15afe27edd", + "object": "Parcel", "created_at": "2024-08-16T15:46:56Z", "updated_at": "2024-08-16T15:46:56Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_93993460e7a34e77832be1069d648f0e", - "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:21Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00:21Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d6394807a4794fd3b59a8a55508969f1", + "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:46:57Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:46:57Z", "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/20231128/e87454851fbe5849e2b5fc5fae9174ec6b.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e84b7c7d8d6628491996a498e6b4fd0926.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_ddc18136160e4c79a41bfe75623ac793", "object": - "Rate", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6e1e5258e6274da488b65daee0d7f4cb", - "object": "Rate", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_8f7574cc460f4d1fb1dcc7ff9698c685", "object": + "Rate", "created_at": "2024-08-16T15:46:56Z", "updated_at": "2024-08-16T15:46:56Z", + "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_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ac05b7aab1e149c39e1fb2f35a9e8019", - "object": "Rate", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", + 2, "shipment_id": "shp_fbb3c991c850462e9144cf6744e5230c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6ff243e7727440599afe751d3c64f596", + "object": "Rate", "created_at": "2024-08-16T15:46:56Z", "updated_at": "2024-08-16T15:46:56Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_240f44cb070c4ee582a0a8e37e5accf0", - "object": "Rate", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_2cd7db1b2f4d4bd6ad17dac873809c8b", "object": "Rate", "created_at": - "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_240f44cb070c4ee582a0a8e37e5accf0", - "object": "Rate", "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:21Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_261832bc405f4d9f888ca518cfbffd28", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285856390", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:00:21Z", "updated_at": - "2023-11-28T22:00:21Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier": "USPS", + 3, "shipment_id": "shp_fbb3c991c850462e9144cf6744e5230c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_59fcc1df31cf42888d9fd7597952f899", + "object": "Rate", "created_at": "2024-08-16T15:46:56Z", "updated_at": "2024-08-16T15:46:56Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_fbb3c991c850462e9144cf6744e5230c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_6ff243e7727440599afe751d3c64f596", "object": + "Rate", "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:46:57Z", + "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_fbb3c991c850462e9144cf6744e5230c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_8e3acee34be146c7bf6f3495d61342dd", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059136", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:46:57Z", + "updated_at": "2024-08-16T15:46:57Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_fbb3c991c850462e9144cf6744e5230c", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzI2MTgzMmJjNDA1ZjRkOWY4ODhjYTUxOGNmYmZmZDI4"}, - "to_address": {"id": "adr_85ef4d3b8e3911eeb9933cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:00:20+00:00", "updated_at": "2023-11-28T22:00:20+00:00", + "https://track.easypost.com/djE6dHJrXzhlM2FjZWUzNGJlMTQ2YzdiZjZmMzQ5NWQ2MTM0MmRk"}, + "to_address": {"id": "adr_c462c3225be611ef8c69ac1f6bc53342", "object": "Address", + "created_at": "2024-08-16T15:46:56+00:00", "updated_at": "2024-08-16T15:46:56+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_85f19f718e3911ee8561ac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T22:00:20+00:00", "updated_at": - "2023-11-28T22:00:20+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_c464aa865be611efbad13cecef1b359e", + "object": "Address", "created_at": "2024-08-16T15:46:56+00:00", "updated_at": + "2024-08-16T15:46:56+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_85ef4d3b8e3911eeb9933cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:00:20+00:00", "updated_at": "2023-11-28T22:00:20+00:00", "name": + "adr_c462c3225be611ef8c69ac1f6bc53342", "object": "Address", "created_at": + "2024-08-16T15:46:56+00:00", "updated_at": "2024-08-16T15:46:56+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_29934ccbddf5474f9fc6efecb61038ee", "object": + "refunded": false}], "id": "shp_fbb3c991c850462e9144cf6744e5230c", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_29934ccbddf5474f9fc6efecb61038ee + - /api/v2/shipments/shp_fbb3c991c850462e9144cf6744e5230c pragma: - no-cache referrer-policy: @@ -151,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0ba656662f4e78a93eb003d9d02 + - 8a4bf43d66bf7470e786a2f7003319fc x-frame-options: - SAMEORIGIN x-node: - - bigweb31nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.924878' + - '0.991946' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -174,8 +161,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_29934ccbddf5474f9fc6efecb61038ee"}}}' + "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_fbb3c991c850462e9144cf6744e5230c"}}}' headers: Accept: - '*/*' @@ -195,21 +182,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_1b8515273ea447e48be96c49087cf664", "object": "Pickup", - "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:21Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", - "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", "object": "Pickup", + "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:46:57Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_86aa9e3e8e3911ee8912ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:00:21+00:00", "updated_at": "2023-11-28T22:00:21+00:00", "name": + "adr_c5062b085be611ef904eac1f6bc539ae", "object": "Address", "created_at": + "2024-08-16T15:46:57+00:00", "updated_at": "2024-08-16T15:46:57+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:22Z", - "updated_at": "2023-11-28T22:00:22Z", "carrier": "USPS", "pickup_id": "pickup_1b8515273ea447e48be96c49087cf664", - "id": "pickuprate_917f9e0990cf412784a112af398b0c2a", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:58Z", + "updated_at": "2024-08-16T15:46:58Z", "carrier": "USPS", "pickup_id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", + "id": "pickuprate_61c282cd40b9467ba8a089c7c7d6e99c", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -234,20 +221,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0ba656662f5e78a93eb003d9e8d + - 8a4bf43d66bf7471e786a2f700331b00 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.689800' + - '1.141081' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -271,24 +258,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/pickups/pickup_1b8515273ea447e48be96c49087cf664/buy + uri: https://api.easypost.com/v2/pickups/pickup_b2949eb61e0b4328a57b6cd946dcd7e4/buy response: body: - string: '{"id": "pickup_1b8515273ea447e48be96c49087cf664", "object": "Pickup", - "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:23Z", + string: '{"id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", "object": "Pickup", + "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:47:00Z", "mode": "test", "status": "scheduled", "reference": null, "min_datetime": - "2023-12-17T00:00:00Z", "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": + "2024-08-17T00:00:00Z", "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": - "WTC63763598", "address": {"id": "adr_86aa9e3e8e3911ee8912ac1f6bc53342", "object": - "Address", "created_at": "2023-11-28T22:00:21+00:00", "updated_at": "2023-11-28T22:00:21+00:00", + "WTC64761770", "address": {"id": "adr_c5062b085be611ef904eac1f6bc539ae", "object": + "Address", "created_at": "2024-08-16T15:46:57+00:00", "updated_at": "2024-08-16T15:46:57+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:22Z", - "updated_at": "2023-11-28T22:00:22Z", "carrier": "USPS", "pickup_id": "pickup_1b8515273ea447e48be96c49087cf664", - "id": "pickuprate_917f9e0990cf412784a112af398b0c2a", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:58Z", + "updated_at": "2024-08-16T15:46:58Z", "carrier": "USPS", "pickup_id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", + "id": "pickuprate_61c282cd40b9467ba8a089c7c7d6e99c", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -313,20 +300,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0ba656662f6e78a93eb003d9fa0 + - 8a4bf43d66bf7472e786a2f700331c43 x-frame-options: - SAMEORIGIN x-node: - - bigweb31nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.871288' + - '1.149012' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -350,24 +337,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/pickups/pickup_1b8515273ea447e48be96c49087cf664/cancel + uri: https://api.easypost.com/v2/pickups/pickup_b2949eb61e0b4328a57b6cd946dcd7e4/cancel response: body: - string: '{"id": "pickup_1b8515273ea447e48be96c49087cf664", "object": "Pickup", - "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:24Z", - "mode": "test", "status": "canceled", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", - "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC63763598", "address": - {"id": "adr_86aa9e3e8e3911ee8912ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:00:21+00:00", "updated_at": "2023-11-28T22:00:21+00:00", "name": + string: '{"id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", "object": "Pickup", + "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:47:01Z", + "mode": "test", "status": "canceled", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": "WTC64761770", "address": + {"id": "adr_c5062b085be611ef904eac1f6bc539ae", "object": "Address", "created_at": + "2024-08-16T15:46:57+00:00", "updated_at": "2024-08-16T15:46:57+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:22Z", - "updated_at": "2023-11-28T22:00:22Z", "carrier": "USPS", "pickup_id": "pickup_1b8515273ea447e48be96c49087cf664", - "id": "pickuprate_917f9e0990cf412784a112af398b0c2a", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:58Z", + "updated_at": "2024-08-16T15:46:58Z", "carrier": "USPS", "pickup_id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", + "id": "pickuprate_61c282cd40b9467ba8a089c7c7d6e99c", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -392,20 +379,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0ba656662f7e78a93eb003da0f6 + - 8a4bf43d66bf7474e786a2f700331da9 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.763746' + - '0.947149' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_create.yaml b/tests/cassettes/test_pickup_create.yaml index 90a1bf81..d35d0b44 100644 --- a/tests/cassettes/test_pickup_create.yaml +++ b/tests/cassettes/test_pickup_create.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:00:10Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-16T15:46:45Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285856031", "updated_at": "2023-11-28T22:00:11Z", "batch_id": + "9400100105807076059082", "updated_at": "2024-08-16T15:46:46Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_80129b778e3911ee8bbdac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:00:10+00:00", "updated_at": "2023-11-28T22:00:10+00:00", "name": + {"id": "adr_bd8ce76f5be611ef8919ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-16T15:46:45+00:00", "updated_at": "2024-08-16T15:46:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_0aa05c178d434b66b8355e41b841dd3e", - "object": "Parcel", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_e9b3bd34a4484aba8e2e0de364e0e871", + "object": "Parcel", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f289e8f296bc4773bacfce758cc83dda", - "created_at": "2023-11-28T22:00:11Z", "updated_at": "2023-11-28T22:00:11Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00:11Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_c4770b1a1bef442ebd0b8c335b5856a4", + "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:46Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:46:45Z", "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/20231128/e8e631372555ce4e20b3e456243e6ddb7f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e80352feb30f554fd8ba2aacb5d74d10c5.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_2f3670e74d5b422e8d129ddf64a51c05", "object": - "Rate", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_319c30426b7e481c92c8f71a07ef75be", - "object": "Rate", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_24dcc2f1fd934939af3a8c46a36b70f2", "object": + "Rate", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", + "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_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_77f3df4a2cf24339b545b11b8f9b8e96", - "object": "Rate", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", + 2, "shipment_id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dbec69e254fe406eb4bf716dabc6ff75", + "object": "Rate", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a9e1db6711da4fadbd79d5fe17338473", - "object": "Rate", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_4ca6cc37ff4a4622bb3b7e7fdc3b9443", "object": "Rate", "created_at": - "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_a9e1db6711da4fadbd79d5fe17338473", - "object": "Rate", "created_at": "2023-11-28T22:00:11Z", "updated_at": "2023-11-28T22:00:11Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_73d131e31b1b4b6d909f704864d00f28", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285856031", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:00:11Z", "updated_at": - "2023-11-28T22:00:11Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_d02507b251604bceb84b99c16ee9dd89", "carrier": "USPS", + 3, "shipment_id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2db21a73e6004c7d84c786502b80cf96", + "object": "Rate", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_dbec69e254fe406eb4bf716dabc6ff75", "object": + "Rate", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", + "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_534bff1dff374311ad4ccd5d3e14b9ab", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_c828c542af214b909f79a46e38166ccb", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059082", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:46:46Z", + "updated_at": "2024-08-16T15:46:46Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzczZDEzMWUzMWIxYjRiNmQ5MDlmNzA0ODY0ZDAwZjI4"}, - "to_address": {"id": "adr_800f829c8e3911eeb5a63cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:00:10+00:00", "updated_at": "2023-11-28T22:00:11+00:00", + "https://track.easypost.com/djE6dHJrX2M4MjhjNTQyYWYyMTRiOTA5Zjc5YTQ2ZTM4MTY2Y2Ni"}, + "to_address": {"id": "adr_bd8ab7065be611efb76f3cecef1b359e", "object": "Address", + "created_at": "2024-08-16T15:46:45+00:00", "updated_at": "2024-08-16T15:46:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_80129b778e3911ee8bbdac1f6bc539ae", - "object": "Address", "created_at": "2023-11-28T22:00:10+00:00", "updated_at": - "2023-11-28T22:00:10+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_bd8ce76f5be611ef8919ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-16T15:46:45+00:00", "updated_at": + "2024-08-16T15:46:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_800f829c8e3911eeb5a63cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:00:10+00:00", "updated_at": "2023-11-28T22:00:11+00:00", "name": + "adr_bd8ab7065be611efb76f3cecef1b359e", "object": "Address", "created_at": + "2024-08-16T15:46:45+00:00", "updated_at": "2024-08-16T15:46:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_d02507b251604bceb84b99c16ee9dd89", "object": + "refunded": false}], "id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_d02507b251604bceb84b99c16ee9dd89 + - /api/v2/shipments/shp_534bff1dff374311ad4ccd5d3e14b9ab pragma: - no-cache referrer-policy: @@ -151,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b8656662eae78a93ce003d913f + - 8a4bf43b66bf7465e786a2db00330ebe x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.983982' + - '1.003754' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -174,8 +161,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_d02507b251604bceb84b99c16ee9dd89"}}}' + "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_534bff1dff374311ad4ccd5d3e14b9ab"}}}' headers: Accept: - '*/*' @@ -195,21 +182,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_9860cb6ae0bd4f149c53248ff9048351", "object": "Pickup", - "created_at": "2023-11-28T22:00:12Z", "updated_at": "2023-11-28T22:00:12Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", - "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_01ab23e45845440b89921fb1607bfe67", "object": "Pickup", + "created_at": "2024-08-16T15:46:46Z", "updated_at": "2024-08-16T15:46:46Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_80c1cd288e3911eeb61a3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:00:11+00:00", "updated_at": "2023-11-28T22:00:11+00:00", "name": + "adr_be3012c35be611ef8d11ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-16T15:46:46+00:00", "updated_at": "2024-08-16T15:46:46+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:12Z", - "updated_at": "2023-11-28T22:00:12Z", "carrier": "USPS", "pickup_id": "pickup_9860cb6ae0bd4f149c53248ff9048351", - "id": "pickuprate_d3971cc0f27b4af3a1b9ef31c419a1e8", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:47Z", + "updated_at": "2024-08-16T15:46:47Z", "carrier": "USPS", "pickup_id": "pickup_01ab23e45845440b89921fb1607bfe67", + "id": "pickuprate_f9946c5995eb4af5b741d6d56e47a3b6", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -234,20 +221,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b8656662ebe78a93ce003d9288 + - 8a4bf43b66bf7466e786a2db00330fd2 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.921440' + - '1.479484' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_get_next_page.yaml b/tests/cassettes/test_pickup_get_next_page.yaml index 83899efe..44dedf7b 100644 --- a/tests/cassettes/test_pickup_get_next_page.yaml +++ b/tests/cassettes/test_pickup_get_next_page.yaml @@ -16,61 +16,61 @@ interactions: uri: https://api.easypost.com/v2/pickups?page_size=5 response: body: - string: '{"pickups": [{"id": "pickup_9860cb6ae0bd4f149c53248ff9048351", "object": - "Pickup", "created_at": "2023-11-28T22:00:12Z", "updated_at": "2023-11-28T22:00:12Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", - "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"pickups": [{"id": "pickup_01ab23e45845440b89921fb1607bfe67", "object": + "Pickup", "created_at": "2024-08-16T15:46:46Z", "updated_at": "2024-08-16T15:46:46Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_80c1cd288e3911eeb61a3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:00:11+00:00", "updated_at": "2023-11-28T22:00:11+00:00", "name": + "adr_be3012c35be611ef8d11ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-16T15:46:46+00:00", "updated_at": "2024-08-16T15:46:46+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:12Z", - "updated_at": "2023-11-28T22:00:12Z", "carrier": "USPS", "pickup_id": "pickup_9860cb6ae0bd4f149c53248ff9048351", - "id": "pickuprate_d3971cc0f27b4af3a1b9ef31c419a1e8", "object": "PickupRate"}]}, - {"id": "pickup_d49471d988984148ae3138550e148a94", "object": "Pickup", "created_at": - "2023-11-28T21:58:39Z", "updated_at": "2023-11-28T21:58:39Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:47Z", + "updated_at": "2024-08-16T15:46:47Z", "carrier": "USPS", "pickup_id": "pickup_01ab23e45845440b89921fb1607bfe67", + "id": "pickuprate_f9946c5995eb4af5b741d6d56e47a3b6", "object": "PickupRate"}]}, + {"id": "pickup_ca2a288624fa4e1fbd68bdc6f98b8022", "object": "Pickup", "created_at": + "2024-08-15T20:41:54Z", "updated_at": "2024-08-15T20:41:54Z", "mode": "test", + "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_49e2f6fd8e3911ee966a3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T21:58:39+00:00", "updated_at": "2023-11-28T21:58:39+00:00", "name": + "adr_ce87f1b15b4611ef91153cecef1b359e", "object": "Address", "created_at": + "2024-08-15T20:41:54+00:00", "updated_at": "2024-08-15T20:41:54+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_cad32c3f692a4d0cb29668e5b08a2de2", - "object": "Pickup", "created_at": "2023-11-28T21:58:37Z", "updated_at": "2023-11-28T21:58:37Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_fa75131fa31943498db31c074e290add", + "object": "Pickup", "created_at": "2024-08-15T20:41:52Z", "updated_at": "2024-08-15T20:41:52Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_489be89c8e3911ee95813cecef1b359e", "object": "Address", "created_at": - "2023-11-28T21:58:37+00:00", "updated_at": "2023-11-28T21:58:37+00:00", "name": + "adr_cd660b0a5b4611efb09cac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T20:41:52+00:00", "updated_at": "2024-08-15T20:41:52+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_b6285245bcb44a898242d20d0c0675f8", - "object": "Pickup", "created_at": "2023-11-28T21:58:35Z", "updated_at": "2023-11-28T21:58:35Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_a4c87194b51f421a8312738633e09606", + "object": "Pickup", "created_at": "2024-08-15T20:41:50Z", "updated_at": "2024-08-15T20:41:50Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_476155358e3911eea42eac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T21:58:35+00:00", "updated_at": "2023-11-28T21:58:35+00:00", "name": + "adr_cc523a585b4611ef90633cecef1b359e", "object": "Address", "created_at": + "2024-08-15T20:41:50+00:00", "updated_at": "2024-08-15T20:41:50+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_4e99467097794cf1aa6421c58173a05e", - "object": "Pickup", "created_at": "2023-11-28T21:58:33Z", "updated_at": "2023-11-28T21:58:33Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_d6e8568063a7477c969b7fb183f473cd", + "object": "Pickup", "created_at": "2024-08-15T20:41:48Z", "updated_at": "2024-08-15T20:41:48Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_460a0a0b8e3911ee9f86ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T21:58:33+00:00", "updated_at": "2023-11-28T21:58:33+00:00", "name": + "adr_cb32b7005b4611ef801dac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T20:41:48+00:00", "updated_at": "2024-08-15T20:41:48+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -100,20 +100,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b91656662ede78a93d0003d0d1c + - 8a4bf43f66bf7468e786a2dd003311fa x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.074946' + - '0.080339' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -133,86 +133,70 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/pickups?before_id=pickup_4e99467097794cf1aa6421c58173a05e&page_size=5 + uri: https://api.easypost.com/v2/pickups?before_id=pickup_d6e8568063a7477c969b7fb183f473cd&page_size=5 response: body: - string: '{"pickups": [{"id": "pickup_27c38e8fcb994e4199e14100e66e7681", "object": - "Pickup", "created_at": "2023-11-28T21:58:30Z", "updated_at": "2023-11-28T21:58:30Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"pickups": [{"id": "pickup_cf4908f7f0514cb99d20bf5b5fef2b09", "object": + "Pickup", "created_at": "2024-08-15T20:41:46Z", "updated_at": "2024-08-15T20:41:46Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_442a32548e3911ee92893cecef1b359e", "object": "Address", "created_at": - "2023-11-28T21:58:30+00:00", "updated_at": "2023-11-28T21:58:30+00:00", "name": + "adr_c9abc34f5b4611ef8f623cecef1b359e", "object": "Address", "created_at": + "2024-08-15T20:41:46+00:00", "updated_at": "2024-08-15T20:41:46+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_c0107a914f7b4341a75ebaf7b844543a", - "object": "Pickup", "created_at": "2023-05-19T19:46:12Z", "updated_at": "2023-05-19T19:46:12Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-23T00:00:00Z", - "max_datetime": "2023-05-23T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_4e9d477637814165b1faf7a558983bc4", + "object": "Pickup", "created_at": "2024-08-15T20:22:10Z", "updated_at": "2024-08-15T20:22:10Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_cee7428ef67d11eda4303cecef1b359e", "object": "Address", "created_at": - "2023-05-19T19:46:12+00:00", "updated_at": "2023-05-19T19:46:12+00:00", "name": + "adr_0ce814bf5b4411ef9704ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T20:22:10+00:00", "updated_at": "2024-08-15T20:22:10+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-19T19:46:12Z", - "updated_at": "2023-05-19T19:46:12Z", "carrier": "USPS", "pickup_id": "pickup_c0107a914f7b4341a75ebaf7b844543a", - "id": "pickuprate_779cb55ed0884c02b0e608a129b14c21", "object": "PickupRate"}]}, - {"id": "pickup_f440a7166a12487eaec7a497888d25c4", "object": "Pickup", "created_at": - "2023-05-19T19:46:08Z", "updated_at": "2023-05-19T19:46:10Z", "mode": "test", - "status": "canceled", "reference": null, "min_datetime": "2023-05-23T00:00:00Z", - "max_datetime": "2023-05-23T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC62991670", "address": - {"id": "adr_cc9e8cb4f67d11ed97ce3cecef1b359e", "object": "Address", "created_at": - "2023-05-19T19:46:08+00:00", "updated_at": "2023-05-19T19:46:08+00:00", "name": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_b539a4cd86a0480aab68db34de60222b", + "object": "Pickup", "created_at": "2024-08-15T20:22:08Z", "updated_at": "2024-08-15T20:22:08Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": + "adr_0bd56e535b4411ef82c03cecef1b359e", "object": "Address", "created_at": + "2024-08-15T20:22:08+00:00", "updated_at": "2024-08-15T20:22:08+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-19T19:46:09Z", - "updated_at": "2023-05-19T19:46:09Z", "carrier": "USPS", "pickup_id": "pickup_f440a7166a12487eaec7a497888d25c4", - "id": "pickuprate_c511b1b885094fd2b251fa133882a8ca", "object": "PickupRate"}]}, - {"id": "pickup_d2dd1156c2fd41fa979436e3c792d5bd", "object": "Pickup", "created_at": - "2023-05-19T19:46:04Z", "updated_at": "2023-05-19T19:46:06Z", "mode": "test", - "status": "scheduled", "reference": null, "min_datetime": "2023-05-23T00:00:00Z", - "max_datetime": "2023-05-23T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC62991668", "address": - {"id": "adr_ca4c24acf67d11ed8b843cecef1b359e", "object": "Address", "created_at": - "2023-05-19T19:46:04+00:00", "updated_at": "2023-05-19T19:46:04+00:00", "name": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_abc3e61e6427474fb89ace065ef2b850", + "object": "Pickup", "created_at": "2024-08-15T20:22:07Z", "updated_at": "2024-08-15T20:22:07Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": + "adr_0adccf7d5b4411efa2cfac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T20:22:06+00:00", "updated_at": "2024-08-15T20:22:06+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-19T19:46:05Z", - "updated_at": "2023-05-19T19:46:05Z", "carrier": "USPS", "pickup_id": "pickup_d2dd1156c2fd41fa979436e3c792d5bd", - "id": "pickuprate_422229d2c51349d2aa661751facce9bd", "object": "PickupRate"}]}, - {"id": "pickup_1665ec0a4a90436986087d72d5b05a23", "object": "Pickup", "created_at": - "2023-05-19T19:46:01Z", "updated_at": "2023-05-19T19:46:01Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2023-05-23T00:00:00Z", - "max_datetime": "2023-05-23T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_10718e76860f4c01b5dec5702030493a", + "object": "Pickup", "created_at": "2024-08-15T20:22:05Z", "updated_at": "2024-08-15T20:22:05Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", + "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_c89612f3f67d11ed96e9ac1f6bc539aa", "object": "Address", "created_at": - "2023-05-19T19:46:01+00:00", "updated_at": "2023-05-19T19:46:01+00:00", "name": + "adr_09a66f505b4411efb2b6ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T20:22:04+00:00", "updated_at": "2024-08-15T20:22:04+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-19T19:46:02Z", - "updated_at": "2023-05-19T19:46:02Z", "carrier": "USPS", "pickup_id": "pickup_1665ec0a4a90436986087d72d5b05a23", - "id": "pickuprate_e660ed4589e3469cb6765ce1ed7023c3", "object": "PickupRate"}]}], - "has_more": true}' + {}}, "carrier_accounts": [], "pickup_rates": []}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '5558' + - '4409' content-type: - application/json; charset=utf-8 expires: @@ -232,7 +216,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b91656662eee78a93d0003d0d71 + - 8a4bf43f66bf7468e786a2dd00331256 x-frame-options: - SAMEORIGIN x-node: @@ -240,12 +224,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.105036' + - '0.082720' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_lowest_rate.yaml b/tests/cassettes/test_pickup_lowest_rate.yaml index e9e07016..81749563 100644 --- a/tests/cassettes/test_pickup_lowest_rate.yaml +++ b/tests/cassettes/test_pickup_lowest_rate.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:00:24Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-16T15:47:01Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285856574", "updated_at": "2023-11-28T22:00:25Z", "batch_id": + "9400100105807076059181", "updated_at": "2024-08-16T15:47:02Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_887a884c8e3911ee874bac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:00:24+00:00", "updated_at": "2023-11-28T22:00:24+00:00", "name": + {"id": "adr_c7332ddd5be611efbc403cecef1b359e", "object": "Address", "created_at": + "2024-08-16T15:47:01+00:00", "updated_at": "2024-08-16T15:47:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_85ed9c66f6e5466b93b43763933e7bac", - "object": "Parcel", "created_at": "2023-11-28T22:00:24Z", "updated_at": "2023-11-28T22:00:24Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_a0c80b2d548f43ddb8e5c314121a0798", + "object": "Parcel", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_023dda07058b4197a41369ce6b8a49c8", - "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00:25Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_5ded0e0b7ef445aabc622bd765a3af92", + "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:02Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:47:01Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e846a296a5b9f8402b891a19d814d87aac.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e85697dfbab4ee46cfa265e78c8ed3f565.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_b3cfa727dc3d442fa869beb567702a9f", "object": - "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4777bdf9ff9a4d658c0ba0428e9df454", - "object": "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_129369f9a0a74e26ab2fdc0cb4d06af8", "object": + "Rate", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", + "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_206738f5ab8c45b989b5c745d9f03ba2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cb40abcd78904548a4d3c9be12a948a4", + "object": "Rate", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_83e88433c1014893a067393dba0242f0", + "object": "Rate", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", + "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_30e89149fb234990814a794c0e298303", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_53f7005f57894a1d8ede3131d15ba18b", - "object": "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", + 2, "shipment_id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_129369f9a0a74e26ab2fdc0cb4d06af8", "object": + "Rate", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_30e89149fb234990814a794c0e298303", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dd53d24df8a34b14b03caf7ea0f8d462", - "object": "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_af00fd82df3c430da6ab9e680ec97324", "object": "Rate", "created_at": - "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_dd53d24df8a34b14b03caf7ea0f8d462", - "object": "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_e5657bfb0f2e4c56a622181940bb81c6", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285856574", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:00:25Z", "updated_at": - "2023-11-28T22:00:25Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_30e89149fb234990814a794c0e298303", "carrier": "USPS", + 3, "shipment_id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e99794b8928842d7a69c715f1e652f23", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059181", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:47:02Z", + "updated_at": "2024-08-16T15:47:02Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2U1NjU3YmZiMGYyZTRjNTZhNjIyMTgxOTQwYmI4MWM2"}, - "to_address": {"id": "adr_8876e9c48e3911ee874aac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:00:24+00:00", "updated_at": "2023-11-28T22:00:25+00:00", + "https://track.easypost.com/djE6dHJrX2U5OTc5NGI4OTI4ODQyZDdhNjljNzE1ZjFlNjUyZjIz"}, + "to_address": {"id": "adr_c730dcde5be611ef8dc6ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-16T15:47:01+00:00", "updated_at": "2024-08-16T15:47:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_887a884c8e3911ee874bac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T22:00:24+00:00", "updated_at": - "2023-11-28T22:00:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_c7332ddd5be611efbc403cecef1b359e", + "object": "Address", "created_at": "2024-08-16T15:47:01+00:00", "updated_at": + "2024-08-16T15:47:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_8876e9c48e3911ee874aac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:00:24+00:00", "updated_at": "2023-11-28T22:00:25+00:00", "name": + "adr_c730dcde5be611ef8dc6ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-16T15:47:01+00:00", "updated_at": "2024-08-16T15:47:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_30e89149fb234990814a794c0e298303", "object": + "refunded": false}], "id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_30e89149fb234990814a794c0e298303 + - /api/v2/shipments/shp_206738f5ab8c45b989b5c745d9f03ba2 pragma: - no-cache referrer-policy: @@ -151,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b3656662f8e78a93ec003da2a3 + - 8a4bf44166bf7475e786a2fc00331ef3 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.941602' + - '0.929745' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -174,8 +161,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_30e89149fb234990814a794c0e298303"}}}' + "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_206738f5ab8c45b989b5c745d9f03ba2"}}}' headers: Accept: - '*/*' @@ -195,21 +182,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_2f77b4a0470e472386161d641f199c77", "object": "Pickup", - "created_at": "2023-11-28T22:00:26Z", "updated_at": "2023-11-28T22:00:26Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", - "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_01e005e4f2d04632b21b79cc76bc605c", "object": "Pickup", + "created_at": "2024-08-16T15:47:02Z", "updated_at": "2024-08-16T15:47:02Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_891f3f558e3911ee87bdac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:00:25+00:00", "updated_at": "2023-11-28T22:00:25+00:00", "name": + "adr_c7d41c565be611ef8e34ac1f6bc53342", "object": "Address", "created_at": + "2024-08-16T15:47:02+00:00", "updated_at": "2024-08-16T15:47:02+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:26Z", - "updated_at": "2023-11-28T22:00:26Z", "carrier": "USPS", "pickup_id": "pickup_2f77b4a0470e472386161d641f199c77", - "id": "pickuprate_d5205496394a4329be2ae3ea953bdc5a", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:47:03Z", + "updated_at": "2024-08-16T15:47:03Z", "carrier": "USPS", "pickup_id": "pickup_01e005e4f2d04632b21b79cc76bc605c", + "id": "pickuprate_fcb3197bea914ee29e3d6a2ae7909b9b", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -234,20 +221,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b3656662f9e78a93ec003da41a + - 8a4bf44166bf7476e786a2fc00331fec x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.713474' + - '1.017529' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_retrieve.yaml b/tests/cassettes/test_pickup_retrieve.yaml index 3ea9abdc..1923acf2 100644 --- a/tests/cassettes/test_pickup_retrieve.yaml +++ b/tests/cassettes/test_pickup_retrieve.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:00:14Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-16T15:46:49Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285856185", "updated_at": "2023-11-28T22:00:15Z", "batch_id": + "9400100105807076059105", "updated_at": "2024-08-16T15:46:50Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_8267bef28e3911eeb71c3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:00:14+00:00", "updated_at": "2023-11-28T22:00:14+00:00", "name": + {"id": "adr_bff24dbb5be611ef8decac1f6bc539ae", "object": "Address", "created_at": + "2024-08-16T15:46:49+00:00", "updated_at": "2024-08-16T15:46:49+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_e58fa1e44068409da3ff95fc6c169234", - "object": "Parcel", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_5b3aa57d47d543bd9247abc96359f28a", + "object": "Parcel", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9ca2e253956f4ea1909138d76fd7cde6", - "created_at": "2023-11-28T22:00:15Z", "updated_at": "2023-11-28T22:00:15Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00:15Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e15dc837d9d540dc90004660ef6eda55", + "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:50Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:46:49Z", "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/20231128/e893844c1736304c4a80c2c2b90623d35a.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e8a808d63c1b6c4896af83a6d4fec88b9e.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_04a634017aa64b92a24e935718a44961", "object": - "Rate", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_32b293473e6c454b93fadd9d8f8aa72c", - "object": "Rate", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_25e25a11774d4a299f3830ea1aa9c6ea", "object": + "Rate", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", + "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_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b97dc66243cb4e298dd20307aa11351b", - "object": "Rate", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", + 2, "shipment_id": "shp_aaf73185d7e1432ca4659061aa717d63", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6eabc81dc27a41a6aad214f61fdd03b6", + "object": "Rate", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2f63665321374e79b9f65d662f489339", - "object": "Rate", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e8c3d898924d4ff1bc3441ae633b6dac", "object": "Rate", "created_at": - "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_2f63665321374e79b9f65d662f489339", - "object": "Rate", "created_at": "2023-11-28T22:00:15Z", "updated_at": "2023-11-28T22:00:15Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_50e1d355a61a41079ae368cd389f2dcf", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285856185", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:00:15Z", "updated_at": - "2023-11-28T22:00:15Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_efb368da208749e9a7b35b30ae928ffe", "carrier": "USPS", + 3, "shipment_id": "shp_aaf73185d7e1432ca4659061aa717d63", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2a601f69142b411f978f0ada51e22a89", + "object": "Rate", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_aaf73185d7e1432ca4659061aa717d63", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_6eabc81dc27a41a6aad214f61fdd03b6", "object": + "Rate", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", + "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_aaf73185d7e1432ca4659061aa717d63", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b856a13ebb05466f8d5690c86f21d50d", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059105", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:46:50Z", + "updated_at": "2024-08-16T15:46:50Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_aaf73185d7e1432ca4659061aa717d63", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzUwZTFkMzU1YTYxYTQxMDc5YWUzNjhjZDM4OWYyZGNm"}, - "to_address": {"id": "adr_82657f858e3911ee8620ac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T22:00:14+00:00", "updated_at": "2023-11-28T22:00:14+00:00", + "https://track.easypost.com/djE6dHJrX2I4NTZhMTNlYmIwNTQ2NmY4ZDU2OTBjODZmMjFkNTBk"}, + "to_address": {"id": "adr_bfeeeb2a5be611ef8a41ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-16T15:46:49+00:00", "updated_at": "2024-08-16T15:46:49+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_8267bef28e3911eeb71c3cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:00:14+00:00", "updated_at": - "2023-11-28T22:00:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_bff24dbb5be611ef8decac1f6bc539ae", + "object": "Address", "created_at": "2024-08-16T15:46:49+00:00", "updated_at": + "2024-08-16T15:46:49+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_82657f858e3911ee8620ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:00:14+00:00", "updated_at": "2023-11-28T22:00:14+00:00", "name": + "adr_bfeeeb2a5be611ef8a41ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-16T15:46:49+00:00", "updated_at": "2024-08-16T15:46:49+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_efb368da208749e9a7b35b30ae928ffe", "object": + "refunded": false}], "id": "shp_aaf73185d7e1432ca4659061aa717d63", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_efb368da208749e9a7b35b30ae928ffe + - /api/v2/shipments/shp_aaf73185d7e1432ca4659061aa717d63 pragma: - no-cache referrer-policy: @@ -146,25 +133,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b8656662eee78a93e8003d95ad + - 8a4bf43d66bf7469e786a2f5003312ae x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '1.003851' + - '1.030210' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -174,8 +163,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_efb368da208749e9a7b35b30ae928ffe"}}}' + "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_aaf73185d7e1432ca4659061aa717d63"}}}' headers: Accept: - '*/*' @@ -195,21 +184,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_b0962a07f371415291338e3c8040339f", "object": "Pickup", - "created_at": "2023-11-28T22:00:15Z", "updated_at": "2023-11-28T22:00:15Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", - "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_75767b64ada14629a24d42254656a137", "object": "Pickup", + "created_at": "2024-08-16T15:46:50Z", "updated_at": "2024-08-16T15:46:50Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_8313b39b8e3911ee8347ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:00:15+00:00", "updated_at": "2023-11-28T22:00:15+00:00", "name": + "adr_c0b434505be611ef8aa3ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-16T15:46:50+00:00", "updated_at": "2024-08-16T15:46:50+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:16Z", - "updated_at": "2023-11-28T22:00:16Z", "carrier": "USPS", "pickup_id": "pickup_b0962a07f371415291338e3c8040339f", - "id": "pickuprate_a9d66347d51f43dcbcb2e0e97af0da76", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:52Z", + "updated_at": "2024-08-16T15:46:52Z", "carrier": "USPS", "pickup_id": "pickup_75767b64ada14629a24d42254656a137", + "id": "pickuprate_01651b090221426992b6130c20f56500", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -229,27 +218,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b8656662efe78a93e8003d96ff + - 8a4bf43d66bf746ae786a2f5003313c3 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.805456' + - '1.785968' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: @@ -269,24 +256,24 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/pickups/pickup_b0962a07f371415291338e3c8040339f + uri: https://api.easypost.com/v2/pickups/pickup_75767b64ada14629a24d42254656a137 response: body: - string: '{"id": "pickup_b0962a07f371415291338e3c8040339f", "object": "Pickup", - "created_at": "2023-11-28T22:00:15Z", "updated_at": "2023-11-28T22:00:15Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", - "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_75767b64ada14629a24d42254656a137", "object": "Pickup", + "created_at": "2024-08-16T15:46:50Z", "updated_at": "2024-08-16T15:46:50Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_8313b39b8e3911ee8347ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:00:15+00:00", "updated_at": "2023-11-28T22:00:15+00:00", "name": + "adr_c0b434505be611ef8aa3ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-16T15:46:50+00:00", "updated_at": "2024-08-16T15:46:50+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:16Z", - "updated_at": "2023-11-28T22:00:16Z", "carrier": "USPS", "pickup_id": "pickup_b0962a07f371415291338e3c8040339f", - "id": "pickuprate_a9d66347d51f43dcbcb2e0e97af0da76", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:52Z", + "updated_at": "2024-08-16T15:46:52Z", "carrier": "USPS", "pickup_id": "pickup_75767b64ada14629a24d42254656a137", + "id": "pickuprate_01651b090221426992b6130c20f56500", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -311,20 +298,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b8656662f0e78a93e8003d983c + - 8a4bf43d66bf746ce786a2f500331593 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq b6e1b5034c x-runtime: - - '0.049223' + - '0.059589' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408152333-48cda4a73e-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_rate_retrieve.yaml b/tests/cassettes/test_rate_retrieve.yaml index 760459fb..1a5d0716 100644 --- a/tests/cassettes/test_rate_retrieve.yaml +++ b/tests/cassettes/test_rate_retrieve.yaml @@ -26,100 +26,93 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:03:05Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-11-28T22:03:05Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_e7e63b478e3911ee8e65ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:03:04+00:00", "updated_at": "2023-11-28T22:03:04+00:00", "name": + string: '{"created_at": "2024-08-15T19:53:29Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-08-15T19:53:30Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_0b523b8d5b4011efa3fa3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:29+00:00", "updated_at": + "2024-08-15T19:53:29+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_cf09d607dcb647c48a4699171e30efe6", "object": + "Parcel", "created_at": "2024-08-15T19:53:29Z", "updated_at": "2024-08-15T19:53:29Z", + "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_aa02931eae0c40d09a992b9616097515", + "object": "Rate", "created_at": "2024-08-15T19:53:30Z", "updated_at": "2024-08-15T19:53:30Z", + "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_367b25dbf9df4150ab9036081a123474", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e30690b2472b44f4a2c2e88d9670f5e3", + "object": "Rate", "created_at": "2024-08-15T19:53:30Z", "updated_at": "2024-08-15T19:53:30Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_367b25dbf9df4150ab9036081a123474", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d43b61a8a2874d8c925c078712400048", + "object": "Rate", "created_at": "2024-08-15T19:53:30Z", "updated_at": "2024-08-15T19:53:30Z", + "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_367b25dbf9df4150ab9036081a123474", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_0b4f2e325b4011efa3f83cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:29+00:00", "updated_at": + "2024-08-15T19:53:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_0b523b8d5b4011efa3fa3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:29+00:00", "updated_at": "2024-08-15T19:53:29+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_3010e359999e4d3c9d811014eca7fc43", - "object": "Parcel", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_48c9b3a844974166b9894bd64bccaeb3", - "object": "Rate", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1132b97a503449c28cfc7c1c9aefb065", - "object": "Rate", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6b57b8b7f82141f7a2ab70ac9978033a", - "object": "Rate", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_11044f506652442c948aeb0a4861003b", - "object": "Rate", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_ccc6fa0610294a4a92ceecc80701a4ca", "object": "Rate", "created_at": - "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_e7e3d7ea8e3911ee8442ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:04+00:00", "updated_at": "2023-11-28T22:03:04+00:00", + {}}, "buyer_address": {"id": "adr_0b4f2e325b4011efa3f83cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:29+00:00", "updated_at": "2024-08-15T19:53:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_e7e63b478e3911ee8e65ac1f6bc539ae", - "object": "Address", "created_at": "2023-11-28T22:03:04+00:00", "updated_at": - "2023-11-28T22:03:04+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "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_e7e3d7ea8e3911ee8442ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:03:04+00:00", "updated_at": "2023-11-28T22:03:04+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_03ed93eb66f6411e8017bcee5bb14481", + {}}, "forms": [], "fees": [], "id": "shp_367b25dbf9df4150ab9036081a123474", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6394' + - '5804' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_03ed93eb66f6411e8017bcee5bb14481 + - /api/v2/shipments/shp_367b25dbf9df4150ab9036081a123474 pragma: - no-cache referrer-policy: @@ -135,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b665666398e78a9789003e6cd6 + - 62c1f5dc66be5cb9e78861e2001741c5 x-frame-options: - SAMEORIGIN x-node: - - bigweb31nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.701225' + - '0.841307' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -168,21 +161,21 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/rates/rate_48c9b3a844974166b9894bd64bccaeb3 + uri: https://api.easypost.com/v2/rates/rate_aa02931eae0c40d09a992b9616097515 response: body: - string: '{"id": "rate_48c9b3a844974166b9894bd64bccaeb3", "object": "Rate", "created_at": - "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}' + string: '{"id": "rate_aa02931eae0c40d09a992b9616097515", "object": "Rate", "created_at": + "2024-08-15T19:53:30Z", "updated_at": "2024-08-15T19:53:30Z", "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_367b25dbf9df4150ab9036081a123474", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}' headers: cache-control: - private, no-cache, no-store content-length: - - '543' + - '542' content-type: - application/json; charset=utf-8 expires: @@ -197,27 +190,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b66566639ae78a9789003e6e5f + - 62c1f5dc66be5cbae78861e2001742d0 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.214577' + - '0.260806' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_referral_customer_add_credit_card.yaml b/tests/cassettes/test_referral_customer_add_credit_card.yaml index 141696d1..e5ab4efa 100644 --- a/tests/cassettes/test_referral_customer_add_credit_card.yaml +++ b/tests/cassettes/test_referral_customer_add_credit_card.yaml @@ -24,8 +24,6 @@ interactions: - '49' content-type: - application/json; charset=utf-8 - etag: - - W/"86cc970265a111486b443bf66ef85e91" expires: - '0' pragma: @@ -43,20 +41,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e26463d02ae787d9a600340738 + - 62c1f5d866be5cbee78861e70017461d x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.014255' + - '0.020497' x-version-label: - - easypost-202305161731-3a88337a74-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -83,23 +81,25 @@ interactions: uri: https://api.stripe.com/v1/tokens?card%5Bexp_month%5D=05&card%5Bexp_year%5D=2028 response: body: - string: '{"id": "tok_0N8SvuDqT4huGUvdQzq2RjAj", "object": "token", "card": {"id": - "card_0N8SvuDqT4huGUvdh2Usi31i", "object": "card", "address_city": null, "address_country": + string: '{"id": "tok_0Po9jmDqT4huGUvdGwBgHnel", "object": "token", "card": {"id": + "card_0Po9jmDqT4huGUvdbeP84aAV", "object": "card", "address_city": null, "address_country": null, "address_line1": null, "address_line1_check": null, "address_line2": null, "address_state": null, "address_zip": null, "address_zip_check": null, "brand": "Visa", "country": "US", "cvc_check": "unchecked", "dynamic_last4": null, "exp_month": 5, "exp_year": 2028, "funding": "credit", "last4": "6170", - "name": null, "tokenization_method": null, "wallet": null}, "client_ip": "", - "created": 1684262954, "livemode": true, "type": "card", "used": false}' + "name": null, "networks": {"preferred": null}, "tokenization_method": null, + "wallet": null}, "client_ip": "", "created": 1723751614, "livemode": + true, "type": "card", "used": false}' headers: Access-Control-Allow-Credentials: - 'true' Access-Control-Allow-Methods: - - GET, POST, HEAD, OPTIONS, DELETE + - GET,HEAD,PUT,PATCH,POST,DELETE Access-Control-Allow-Origin: - '*' Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required Access-Control-Max-Age: - '300' Cache-Control: @@ -107,17 +107,27 @@ interactions: Connection: - keep-alive Content-Length: - - '739' + - '788' + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Ftokens; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Content-Type: - application/json + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Date: - - Tue, 16 May 2023 18:49:14 GMT + - Thu, 15 Aug 2024 19:53:34 GMT Idempotency-Key: - - b1fa9637-7528-40c3-8c10-401114571781 + - 4c2cef93-cd04-4374-8775-fc3ac2189515 Original-Request: - - req_mZ4fDlnwWczYVU + - req_sONoccjCYMJSVm + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=payins-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=payins-bapi-srv" Request-Id: - - req_mZ4fDlnwWczYVU + - req_sONoccjCYMJSVm Server: - nginx Strict-Transport-Security: @@ -126,11 +136,19 @@ interactions: - 'false' Stripe-Version: - '2020-08-27' + Vary: + - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' + X-Stripe-Routing-Context-Priority-Tier: + - livemode-critical status: code: 200 message: OK - request: - body: '{"credit_card": {"stripe_object_id": "tok_0N8SvuDqT4huGUvdQzq2RjAj", "priority": + body: '{"credit_card": {"stripe_object_id": "tok_0Po9jmDqT4huGUvdGwBgHnel", "priority": "primary"}}' headers: Accept: @@ -151,18 +169,16 @@ interactions: uri: https://api.easypost.com/v2/credit_cards response: body: - string: '{"id": "card_01c526a7012f4d35b1e849c44529fded", "disabled_at": null, + string: '{"id": "pm_1bc11ef87e774e81acf04d34f29b6209", "disabled_at": null, "object": "CreditCard", "name": null, "last4": "6170", "exp_month": 5, "exp_year": - 2028, "brand": "Visa"}' + 2028, "brand": "Visa", "requires_mandate_collection": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '159' + - '193' content-type: - application/json; charset=utf-8 - etag: - - W/"09a287defb2f677abf5de0d7cbce895d" expires: - '0' pragma: @@ -180,20 +196,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e26463d02ae787d9a600340757 + - 62c1f5dd66be5cbfe78861e9001746e3 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '2.988953' + - '3.079624' x-version-label: - - easypost-202305161731-3a88337a74-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_referral_customer_all.yaml b/tests/cassettes/test_referral_customer_all.yaml index 6647dab7..097044f9 100644 --- a/tests/cassettes/test_referral_customer_all.yaml +++ b/tests/cassettes/test_referral_customer_all.yaml @@ -22,7 +22,7 @@ interactions: false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_35cb81fb8af1454dabf1f6afa7330634", "object": "User", "parent_id": null, "name": "Firstname Lastname", "phone_number": "", "verified": true, "created_at": "2022-04-27T20:20:52Z", "default_carbon_offset": @@ -30,20 +30,20 @@ interactions: "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": true, "cc_fee_rate": "0.0325", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": - "0.25", "email": "", "children": []}, {"id": "user_fa93cc16bcc24c078ee057ce82f38eed", + "0.50", "email": "", "children": []}, {"id": "user_fa93cc16bcc24c078ee057ce82f38eed", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-04-28T22:34:38Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_4a22730cdc844ce1bc2efbed999c869f", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-04-29T19:35:33Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_488e391395f4416196a31965fecac409", "object": "User", "parent_id": null, "name": "Firstname Lastname", "phone_number": "", "verified": true, "created_at": "2022-05-02T18:48:22Z", "default_carbon_offset": @@ -51,7 +51,7 @@ interactions: "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": true, "cc_fee_rate": "0.0325", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": - "0.25", "email": "", "children": []}]}' + "0.50", "email": "", "children": []}]}' headers: cache-control: - private, no-cache, no-store @@ -59,8 +59,6 @@ interactions: - '2858' content-type: - application/json; charset=utf-8 - etag: - - W/"57b616a535a9df8008e17cdd2be65c48" expires: - '0' pragma: @@ -73,27 +71,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e06463d029e787d9a4003406fa + - 62c1f5d966be5cbce78861e5001744d9 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.151188' + - '0.471273' x-version-label: - - easypost-202305161817-392deb98e4-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_referral_customer_create.yaml b/tests/cassettes/test_referral_customer_create.yaml index d0d256ef..7d7761c8 100644 --- a/tests/cassettes/test_referral_customer_create.yaml +++ b/tests/cassettes/test_referral_customer_create.yaml @@ -20,26 +20,24 @@ interactions: uri: https://api.easypost.com/v2/referral_customers response: body: - string: '{"id": "user_13a70eac666646e9ab5fff36960df91b", "object": "User", "parent_id": + string: '{"id": "user_aa500c4bac5244e5ad7260d37f033c27", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, - "created_at": "2023-05-16T18:49:11Z", "default_carbon_offset": false, "has_elevate_access": + "created_at": "2024-08-15T19:53:31Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0375", "default_insurance_amount": "50.00", "insurance_fee_rate": - "0.005", "insurance_fee_minimum": "0.25", "email": "", "children": + "0.01", "insurance_fee_minimum": "0.50", "email": "", "children": [], "api_keys": [{"object": "ApiKey", "key": "", "mode": "test", - "created_at": "2023-05-16T18:49:11Z", "active": true, "id": "ak_09a343d0a9ba41b0a8e09dc0a6c6a8ed"}, + "created_at": "2024-08-15T19:53:31Z", "active": true, "id": "ak_ed529f84c60a4a5aa76be3808d1c9bbf"}, {"object": "ApiKey", "key": "", "mode": "production", "created_at": - "2023-05-16T18:49:11Z", "active": true, "id": "ak_c0ff406ccc5744f0a4f8564f89f5fa47"}]}' + "2024-08-15T19:53:31Z", "active": true, "id": "ak_258a2eac822c4414aef96b994a66fc21"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '1018' + - '1017' content-type: - application/json; charset=utf-8 - etag: - - W/"54a0a3bccd5f726faf0be4e902b030fa" expires: - '0' pragma: @@ -57,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e06463d027e787d9a200340637 + - 62c1f5d766be5cbbe78861e300174348 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.941512' + - '0.602572' x-version-label: - - easypost-202305161731-3a88337a74-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_referral_customer_update.yaml b/tests/cassettes/test_referral_customer_update.yaml index 187917c7..3598de13 100644 --- a/tests/cassettes/test_referral_customer_update.yaml +++ b/tests/cassettes/test_referral_customer_update.yaml @@ -22,7 +22,7 @@ interactions: false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_35cb81fb8af1454dabf1f6afa7330634", "object": "User", "parent_id": null, "name": "Firstname Lastname", "phone_number": "", "verified": true, "created_at": "2022-04-27T20:20:52Z", "default_carbon_offset": @@ -30,20 +30,20 @@ interactions: "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": true, "cc_fee_rate": "0.0325", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": - "0.25", "email": "", "children": []}, {"id": "user_fa93cc16bcc24c078ee057ce82f38eed", + "0.50", "email": "", "children": []}, {"id": "user_fa93cc16bcc24c078ee057ce82f38eed", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-04-28T22:34:38Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_4a22730cdc844ce1bc2efbed999c869f", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-04-29T19:35:33Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_488e391395f4416196a31965fecac409", "object": "User", "parent_id": null, "name": "Firstname Lastname", "phone_number": "", "verified": true, "created_at": "2022-05-02T18:48:22Z", "default_carbon_offset": @@ -51,13 +51,13 @@ interactions: "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": true, "cc_fee_rate": "0.0325", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": - "0.25", "email": "", "children": []}, {"id": "user_91b120087ff843349b9a3f0675572bb1", + "0.50", "email": "", "children": []}, {"id": "user_91b120087ff843349b9a3f0675572bb1", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-05-02T19:04:10Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_4ae0d572fbe542deb7efa51935a5b826", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-05-02T23:08:40Z", "default_carbon_offset": @@ -65,20 +65,20 @@ interactions: "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": true, "cc_fee_rate": "0.0325", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": - "0.25", "email": "", "children": []}, {"id": "user_71189529eba747ce83aa69303e22c7df", + "0.50", "email": "", "children": []}, {"id": "user_71189529eba747ce83aa69303e22c7df", "object": "User", "parent_id": null, "name": "Firstname Lastname", "phone_number": "", "verified": true, "created_at": "2022-05-04T22:05:27Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_c13290f1f6a442d79657b8bfe5daeeba", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-05-05T16:54:58Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_b73fdc6c6a58421ea884a82ad14520a5", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-05-05T16:55:59Z", "default_carbon_offset": @@ -86,7 +86,7 @@ interactions: "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": true, "cc_fee_rate": "0.0325", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": - "0.25", "email": "", "children": []}]}' + "0.50", "email": "", "children": []}]}' headers: cache-control: - private, no-cache, no-store @@ -94,8 +94,6 @@ interactions: - '5654' content-type: - application/json; charset=utf-8 - etag: - - W/"b6a373ba9757228293c75bf6b3006941" expires: - '0' pragma: @@ -108,27 +106,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e46463d028e787d9a3003406c3 + - 62c1f5d966be5cbbe78861e400174418 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.297082' + - '0.496298' x-version-label: - - easypost-202305161817-392deb98e4-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -163,8 +159,6 @@ interactions: - '59' content-type: - application/json; charset=utf-8 - etag: - - W/"7b30d603e3257aee787616dc99d6d4af" expires: - '0' pragma: @@ -182,20 +176,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e46463d028e787d9a3003406df + - 62c1f5d966be5cbce78861e40017449e x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.135119' + - '0.057436' x-version-label: - - easypost-202305161731-3a88337a74-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_referral_get_next_page.yaml b/tests/cassettes/test_referral_get_next_page.yaml index 7d1fbbc4..5c369639 100644 --- a/tests/cassettes/test_referral_get_next_page.yaml +++ b/tests/cassettes/test_referral_get_next_page.yaml @@ -22,7 +22,7 @@ interactions: false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_35cb81fb8af1454dabf1f6afa7330634", "object": "User", "parent_id": null, "name": "Firstname Lastname", "phone_number": "", "verified": true, "created_at": "2022-04-27T20:20:52Z", "default_carbon_offset": @@ -30,20 +30,20 @@ interactions: "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": true, "cc_fee_rate": "0.0325", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": - "0.25", "email": "", "children": []}, {"id": "user_fa93cc16bcc24c078ee057ce82f38eed", + "0.50", "email": "", "children": []}, {"id": "user_fa93cc16bcc24c078ee057ce82f38eed", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-04-28T22:34:38Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_4a22730cdc844ce1bc2efbed999c869f", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-04-29T19:35:33Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_488e391395f4416196a31965fecac409", "object": "User", "parent_id": null, "name": "Firstname Lastname", "phone_number": "", "verified": true, "created_at": "2022-05-02T18:48:22Z", "default_carbon_offset": @@ -51,16 +51,14 @@ interactions: "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": true, "cc_fee_rate": "0.0325", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": - "0.25", "email": "", "children": []}]}' + "0.50", "email": "", "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2854' + - '2858' content-type: - application/json; charset=utf-8 - etag: - - W/"87d4f1c9b4c89d23ec5e4ddf34cfae8e" expires: - '0' pragma: @@ -78,20 +76,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - e7025b8965417fa6e7798ae402602844 + - 62c1f5dc66be5cbde78861e600174570 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.308643' + - '0.221506' x-version-label: - - easypost-202310312106-bb7125dd9b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -120,14 +118,14 @@ interactions: false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_fa93cc16bcc24c078ee057ce82f38eed", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, "created_at": "2022-04-28T22:34:38Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}, {"id": "user_35cb81fb8af1454dabf1f6afa7330634", "object": "User", "parent_id": null, "name": "Firstname Lastname", "phone_number": "", "verified": true, "created_at": "2022-04-27T20:20:52Z", "default_carbon_offset": @@ -135,23 +133,21 @@ interactions: "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": true, "cc_fee_rate": "0.0325", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": - "0.25", "email": "", "children": []}, {"id": "user_634b6daa05744bfaa205058f06864363", + "0.50", "email": "", "children": []}, {"id": "user_634b6daa05744bfaa205058f06864363", "object": "User", "parent_id": null, "name": "Firstname Lastname", "phone_number": "", "verified": true, "created_at": "2022-04-26T15:50:28Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0325", "default_insurance_amount": - "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.25", "email": + "50.00", "insurance_fee_rate": "0.005", "insurance_fee_minimum": "0.50", "email": "", "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2281' + - '2285' content-type: - application/json; charset=utf-8 - etag: - - W/"96f6bfd4815c1b4cb441150d0a156828" expires: - '0' pragma: @@ -169,20 +165,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - e7025b8965417fa6e7798ae40260286e + - 62c1f5dc66be5cbde78861e6001745b2 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.169410' + - '0.208635' x-version-label: - - easypost-202310312106-bb7125dd9b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_all.yaml b/tests/cassettes/test_refund_all.yaml index 53339149..624528c1 100644 --- a/tests/cassettes/test_refund_all.yaml +++ b/tests/cassettes/test_refund_all.yaml @@ -16,10 +16,10 @@ interactions: uri: https://api.easypost.com/v2/refunds?page_size=5 response: body: - string: '{"refunds": [{"id": "rfnd_bad47afb0a9743b6acbf1ecfad761aa5", "object": - "Refund", "created_at": "2023-05-16T15:09:03Z", "updated_at": "2023-05-16T15:09:03Z", - "tracking_code": "9400100104262210314976", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2"}], + string: '{"refunds": [{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": + "Refund", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", + "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}], "has_more": false}' headers: cache-control: @@ -28,8 +28,6 @@ interactions: - '326' content-type: - application/json; charset=utf-8 - etag: - - W/"9201c691d2cf85a3b6d58c01209062c9" expires: - '0' pragma: @@ -47,20 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e464639c8fe786a73800200900 + - 62c1f5d966be5cc3e788620300174b2e x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.120362' + - '0.044571' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_create.yaml b/tests/cassettes/test_refund_create.yaml index f6859136..73079348 100644 --- a/tests/cassettes/test_refund_create.yaml +++ b/tests/cassettes/test_refund_create.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:04:14Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:53:38Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285865323", "updated_at": "2023-11-28T22:04:14Z", "batch_id": + "9400100105807075742886", "updated_at": "2024-08-15T19:53:39Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_112114878e3a11ee94313cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", "name": + {"id": "adr_108166455b4011efb6f1ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c14abe119b4b47cca0eaffefa64ec311", - "object": "Parcel", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_642d11e9fb434aa998e00ad920aff76b", + "object": "Parcel", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f5482c5ee9694dc2aaf344cd96b84259", - "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:04:14Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_49a1063a6a4d4e369e0c0010e8106f2f", + "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:39Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53: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/20231128/e8c8b82e8339f94b608d71b001b7c22082.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86d824b1d760044a785ef93f8690c3a26.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f7fc0d50e1c54a7f94d19d07d83527e2", "object": - "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_391276f050354b6fa00b8244b10cee20", "object": + "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_20891227b5fb432fa0ac80ac0bba6cb5", + "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "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_389b05acbbff44bfa104ee937676bace", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f1537b73e7b445b86a0a34b139a0bbc", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + 2, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f0b282224c94e72bd212ef227f12169", + "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_389b05acbbff44bfa104ee937676bace", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_252d16804f6a4914990c7927640dc139", "object": "Rate", "created_at": - "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_550711dcaca14d96a311eedb314dbb30", "object": "Rate", "created_at": - "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_f7228e9b353c4d22820956036c86fcc8", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285865323", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:04:15Z", "updated_at": - "2023-11-28T22:04:15Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier": "USPS", + 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_3f0b282224c94e72bd212ef227f12169", "object": + "Rate", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", + "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_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742886", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:39Z", + "updated_at": "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2Y3MjI4ZTliMzUzYzRkMjI4MjA5NTYwMzZjODZmY2M4"}, - "to_address": {"id": "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", + "https://track.easypost.com/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, + "to_address": {"id": "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": - "2023-11-28T22:04:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_108166455b4011efb6f1ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:38+00:00", "updated_at": + "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", "name": + "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_389b05acbbff44bfa104ee937676bace", "object": + "refunded": false}], "id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_389b05acbbff44bfa104ee937676bace + - /api/v2/shipments/shp_4b07ee8bc6714adfaddbc1d79cc72587 pragma: - no-cache referrer-policy: @@ -151,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8f656663dee78a97f0003e3c61 + - 62c1f5da66be5cc2e7886202001749f7 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.933412' + - '0.940320' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -184,83 +171,70 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_389b05acbbff44bfa104ee937676bace + uri: https://api.easypost.com/v2/shipments/shp_4b07ee8bc6714adfaddbc1d79cc72587 response: body: - string: '{"created_at": "2023-11-28T22:04:14Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:53:38Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285865323", "updated_at": "2023-11-28T22:04:14Z", "batch_id": + "9400100105807075742886", "updated_at": "2024-08-15T19:53:39Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_112114878e3a11ee94313cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", "name": + {"id": "adr_108166455b4011efb6f1ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c14abe119b4b47cca0eaffefa64ec311", - "object": "Parcel", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_642d11e9fb434aa998e00ad920aff76b", + "object": "Parcel", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f5482c5ee9694dc2aaf344cd96b84259", - "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:04:14Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_49a1063a6a4d4e369e0c0010e8106f2f", + "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:39Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53: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/20231128/e8c8b82e8339f94b608d71b001b7c22082.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86d824b1d760044a785ef93f8690c3a26.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f7fc0d50e1c54a7f94d19d07d83527e2", "object": - "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_391276f050354b6fa00b8244b10cee20", "object": + "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_20891227b5fb432fa0ac80ac0bba6cb5", + "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "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_389b05acbbff44bfa104ee937676bace", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f1537b73e7b445b86a0a34b139a0bbc", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + 2, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f0b282224c94e72bd212ef227f12169", + "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53: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_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_3f0b282224c94e72bd212ef227f12169", "object": + "Rate", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_389b05acbbff44bfa104ee937676bace", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_252d16804f6a4914990c7927640dc139", "object": "Rate", "created_at": - "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_550711dcaca14d96a311eedb314dbb30", "object": "Rate", "created_at": - "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_f7228e9b353c4d22820956036c86fcc8", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285865323", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-11-28T22:04:15Z", "updated_at": - "2023-11-28T22:04:15Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-11-28T22:04:15Z", "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", + 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742886", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:39Z", + "updated_at": "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:39Z", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:04:15Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:39Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:41:15Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:39Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -269,9 +243,9 @@ interactions: {"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/djE6dHJrX2Y3MjI4ZTliMzUzYzRkMjI4MjA5NTYwMzZjODZmY2M4"}, - "to_address": {"id": "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, + "to_address": {"id": "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -279,15 +253,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": - "2023-11-28T22:04:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_108166455b4011efb6f1ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:38+00:00", "updated_at": + "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", "name": + "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -297,13 +271,13 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_389b05acbbff44bfa104ee937676bace", "object": + "refunded": false}], "id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8656' + - '7586' content-type: - application/json; charset=utf-8 expires: @@ -323,27 +297,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8f656663dfe78a97f0003e3d9d + - 62c1f5da66be5cc3e788620200174ac5 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.136542' + - '0.144191' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"refund": {"carrier": "USPS", "tracking_codes": ["9400100105442285865323"]}}' + body: '{"refund": {"carrier": "USPS", "tracking_codes": ["9400100105807075742886"]}}' headers: Accept: - '*/*' @@ -363,10 +337,10 @@ interactions: uri: https://api.easypost.com/v2/refunds response: body: - string: '[{"id": "rfnd_88027fb7873d4632b55b7d9eb370ce5f", "object": "Refund", - "created_at": "2023-11-28T22:04:15Z", "updated_at": "2023-11-28T22:04:15Z", - "tracking_code": "9400100105442285865323", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_389b05acbbff44bfa104ee937676bace"}]' + string: '[{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": "Refund", + "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", + "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}]' headers: cache-control: - private, no-cache, no-store @@ -386,27 +360,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8f656663dfe78a97f0003e3e20 + - 62c1f5da66be5cc3e788620200174af6 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.090559' + - '0.088670' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_get_next_page.yaml b/tests/cassettes/test_refund_get_next_page.yaml index 74437c05..4ba7c261 100644 --- a/tests/cassettes/test_refund_get_next_page.yaml +++ b/tests/cassettes/test_refund_get_next_page.yaml @@ -16,10 +16,10 @@ interactions: uri: https://api.easypost.com/v2/refunds?page_size=5 response: body: - string: '{"refunds": [{"id": "rfnd_bad47afb0a9743b6acbf1ecfad761aa5", "object": - "Refund", "created_at": "2023-05-16T15:09:03Z", "updated_at": "2023-05-16T15:09:03Z", - "tracking_code": "9400100104262210314976", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2"}], + string: '{"refunds": [{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": + "Refund", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", + "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}], "has_more": false}' headers: cache-control: @@ -28,8 +28,6 @@ interactions: - '326' content-type: - application/json; charset=utf-8 - etag: - - W/"9201c691d2cf85a3b6d58c01209062c9" expires: - '0' pragma: @@ -47,20 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e164639c8fe786a73900200920 + - 62c1f5da66be5cc4e788620400174b5d x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.044923' + - '0.187913' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_retrieve.yaml b/tests/cassettes/test_refund_retrieve.yaml index fa9de1c1..ed3a2394 100644 --- a/tests/cassettes/test_refund_retrieve.yaml +++ b/tests/cassettes/test_refund_retrieve.yaml @@ -16,10 +16,10 @@ interactions: uri: https://api.easypost.com/v2/refunds?page_size=5 response: body: - string: '{"refunds": [{"id": "rfnd_bad47afb0a9743b6acbf1ecfad761aa5", "object": - "Refund", "created_at": "2023-05-16T15:09:03Z", "updated_at": "2023-05-16T15:09:03Z", - "tracking_code": "9400100104262210314976", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2"}], + string: '{"refunds": [{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": + "Refund", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", + "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}], "has_more": false}' headers: cache-control: @@ -28,8 +28,6 @@ interactions: - '326' content-type: - application/json; charset=utf-8 - etag: - - W/"9201c691d2cf85a3b6d58c01209062c9" expires: - '0' pragma: @@ -47,20 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e464639c90e786a73a00200932 + - 62c1f5da66be5cc4e788620500174bc4 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.039446' + - '0.045226' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -80,13 +78,13 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/refunds/rfnd_bad47afb0a9743b6acbf1ecfad761aa5 + uri: https://api.easypost.com/v2/refunds/rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06 response: body: - string: '{"id": "rfnd_bad47afb0a9743b6acbf1ecfad761aa5", "object": "Refund", - "created_at": "2023-05-16T15:09:03Z", "updated_at": "2023-05-16T15:09:03Z", - "tracking_code": "9400100104262210314976", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2"}' + string: '{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": "Refund", + "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", + "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}' headers: cache-control: - private, no-cache, no-store @@ -94,8 +92,6 @@ interactions: - '295' content-type: - application/json; charset=utf-8 - etag: - - W/"88592e272bcea6ef2c599b8db188fa85" expires: - '0' pragma: @@ -113,20 +109,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e464639c90e786a73a0020093e + - 62c1f5da66be5cc4e788620500174be3 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.127959' + - '0.043370' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_all.yaml b/tests/cassettes/test_report_all.yaml index 35d677d1..cb6ebfd3 100644 --- a/tests/cassettes/test_report_all.yaml +++ b/tests/cassettes/test_report_all.yaml @@ -16,28 +16,27 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment?page_size=5 response: body: - string: '{"reports": [{"id": "shprep_2d2aa29b059e4f908df1470a6508d20a", "object": - "ShipmentReport", "created_at": "2023-05-16T15:28:53Z", "updated_at": "2023-05-16T15:28:54Z", + string: '{"reports": [{"id": "shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8", "object": + "ShipmentReport", "created_at": "2024-08-15T19:53:42Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "available", "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230516/fdef14e058074a9fbd5b7a7d972c3db9.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153159Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=92144c7a4aca05676ae2741eeacbae49e00f03f0fcbbeeeb3d7b8b32a0d2d6f3", - "url_expires_at": "2023-05-16T15:32:29Z", "include_children": false}, {"id": - "shprep_1ad45dc68aa744f5ad61bfe46d8ee49e", "object": "ShipmentReport", "created_at": - "2023-05-16T15:28:53Z", "updated_at": "2023-05-16T15:28:53Z", "start_date": + "new", "url": null, "url_expires_at": null, "include_children": false}, {"id": + "shprep_7d941ac7853d432f80e8ba9a9e610663", "object": "ShipmentReport", "created_at": + "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230516/f16b25ac5f0342208aa15bd94093dc8e.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153159Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=d7c0f74f17eaae8437c825ebdeb9440a57c1513a830fc8d248c8293995867df8", - "url_expires_at": "2023-05-16T15:32:29Z", "include_children": false}, {"id": - "shprep_4278c856e8264aeb820b4ade399e7d58", "object": "ShipmentReport", "created_at": - "2023-05-16T15:28:53Z", "updated_at": "2023-05-16T15:28:53Z", "start_date": + "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e8baebce9247a8487a9f0999584aaf02b5.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=6531cc88069ce31106be0f4c368f70a4dcd6cae80e6451637bf326d90dfc7563", + "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": + "shprep_898f903c09e44f39a78d2327e8a2804d", "object": "ShipmentReport", "created_at": + "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230516/7529ca86b6264ecf854b6828712d404a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153159Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=995b7a6ab086822d9e903b7588ebe7d4372013b60930e139bdddfe3979c4ff79", - "url_expires_at": "2023-05-16T15:32:29Z", "include_children": false}, {"id": - "shprep_60c43d5d13bb4b34bfe4fa4c937a2ef1", "object": "ShipmentReport", "created_at": - "2023-05-16T15:28:52Z", "updated_at": "2023-05-16T15:28:53Z", "start_date": + "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e86f8b1aceebd44ebda2f226fe0f7a00ce.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=cbaf689b81a6ec5394be5a05606cd3cb76a19c1788cd360269cb5b85f03823d8", + "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": + "shprep_da46ce4ada344c028892a5f0fafcb07e", "object": "ShipmentReport", "created_at": + "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230516/a6eaf112fd684b469b8d958fab274382.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153159Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=7cf24b5d62eff3dc5b43f0db516bba1a03c696d1c12feb83a572b7de7ee39087", - "url_expires_at": "2023-05-16T15:32:29Z", "include_children": false}, {"id": - "shprep_5fa6db008b294b62a87fe844445ce284", "object": "ShipmentReport", "created_at": - "2023-02-01T23:02:05Z", "updated_at": "2023-02-01T23:02:18Z", "start_date": + "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e838c123876ff64d7fa73c8979b9d4eade.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=f34e076ae918c7379fd73d6cbd4af53d38479cf317289ba351f5299d556eb9ac", + "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": + "shprep_2a996421686a46ad9dce115eed3edc28", "object": "ShipmentReport", "created_at": + "2024-01-19T22:05:41Z", "updated_at": "2024-01-19T22:05:41Z", "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": "empty", "url": null, "url_expires_at": null, "include_children": false}], "has_more": true}' @@ -45,11 +44,9 @@ interactions: cache-control: - private, no-cache, no-store content-length: - - '3067' + - '2669' content-type: - application/json; charset=utf-8 - etag: - - W/"0e41d00cfce84e76e52a1c5abe894af7" expires: - '0' pragma: @@ -67,20 +64,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e026463a1efe786b0630024c850 + - 62c1f5d966be5cc6e788620a00174d92 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.036374' + - '0.064198' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_create_report.yaml b/tests/cassettes/test_report_create_report.yaml index b5809ecb..15b7f876 100644 --- a/tests/cassettes/test_report_create_report.yaml +++ b/tests/cassettes/test_report_create_report.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: '{"id": "shprep_60c43d5d13bb4b34bfe4fa4c937a2ef1", "object": "ShipmentReport", - "created_at": "2023-05-16T15:28:52Z", "updated_at": "2023-05-16T15:28:52Z", + string: '{"id": "shprep_da46ce4ada344c028892a5f0fafcb07e", "object": "ShipmentReport", + "created_at": "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "new", "url": null, "url_expires_at": null, "include_children": false}' headers: @@ -31,8 +31,6 @@ interactions: - '283' content-type: - application/json; charset=utf-8 - etag: - - W/"80d9da60e6cc1fa9d4774b8ac3b5ef23" expires: - '0' pragma: @@ -50,20 +48,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e16463a134e786afbb0021bb80 + - 62c1f5da66be5cc5e788620600174c20 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.076758' + - '0.089492' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_create_with_additional_columns.yaml b/tests/cassettes/test_report_create_with_additional_columns.yaml index 929cbde4..8234c919 100644 --- a/tests/cassettes/test_report_create_with_additional_columns.yaml +++ b/tests/cassettes/test_report_create_with_additional_columns.yaml @@ -21,8 +21,8 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: '{"id": "shprep_4278c856e8264aeb820b4ade399e7d58", "object": "ShipmentReport", - "created_at": "2023-05-16T15:28:53Z", "updated_at": "2023-05-16T15:28:53Z", + string: '{"id": "shprep_898f903c09e44f39a78d2327e8a2804d", "object": "ShipmentReport", + "created_at": "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "new", "url": null, "url_expires_at": null, "include_children": false}' headers: @@ -32,8 +32,6 @@ interactions: - '283' content-type: - application/json; charset=utf-8 - etag: - - W/"b2441501e7f8cd92d45b23389d4343ac" expires: - '0' pragma: @@ -51,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e66463a135e786afbc0021bb99 + - 62c1f5da66be5cc5e788620700174c75 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.054822' + - '0.093903' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_create_with_columns.yaml b/tests/cassettes/test_report_create_with_columns.yaml index de163f1d..eb550dd7 100644 --- a/tests/cassettes/test_report_create_with_columns.yaml +++ b/tests/cassettes/test_report_create_with_columns.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: '{"id": "shprep_1ad45dc68aa744f5ad61bfe46d8ee49e", "object": "ShipmentReport", - "created_at": "2023-05-16T15:28:53Z", "updated_at": "2023-05-16T15:28:53Z", + string: '{"id": "shprep_7d941ac7853d432f80e8ba9a9e610663", "object": "ShipmentReport", + "created_at": "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "new", "url": null, "url_expires_at": null, "include_children": false}' headers: @@ -31,8 +31,6 @@ interactions: - '283' content-type: - application/json; charset=utf-8 - etag: - - W/"6e0c5428a247cbebb24e929a6c323b31" expires: - '0' pragma: @@ -50,20 +48,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e16463a135e786afbd0021bbb3 + - 62c1f5dc66be5cc5e788620800174cc7 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.040543' + - '0.087788' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_get_next_page.yaml b/tests/cassettes/test_report_get_next_page.yaml index 5611e84e..cc04eeca 100644 --- a/tests/cassettes/test_report_get_next_page.yaml +++ b/tests/cassettes/test_report_get_next_page.yaml @@ -16,28 +16,28 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment?page_size=5 response: body: - string: '{"reports": [{"id": "shprep_2d2aa29b059e4f908df1470a6508d20a", "object": - "ShipmentReport", "created_at": "2023-05-16T15:28:53Z", "updated_at": "2023-05-16T15:28:54Z", + string: '{"reports": [{"id": "shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8", "object": + "ShipmentReport", "created_at": "2024-08-15T19:53:42Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "available", "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230516/fdef14e058074a9fbd5b7a7d972c3db9.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153155Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=fab52456b5638b2f0713ce6a3ad92aef2f8e2be744757af477af6ff3a88e1803", - "url_expires_at": "2023-05-16T15:32:25Z", "include_children": false}, {"id": - "shprep_1ad45dc68aa744f5ad61bfe46d8ee49e", "object": "ShipmentReport", "created_at": - "2023-05-16T15:28:53Z", "updated_at": "2023-05-16T15:28:53Z", "start_date": + "available", "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e8c53165d6e8264f47a69ecb7a154c5387.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=35a43d08a97bcc1f5331d71091608a296d7670d63558102f6e5b95e6b4a0457f", + "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": + "shprep_7d941ac7853d432f80e8ba9a9e610663", "object": "ShipmentReport", "created_at": + "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230516/f16b25ac5f0342208aa15bd94093dc8e.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153155Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=0da3ab353822948d52698df6e2b1b2a03a48e13afea8872dbcdeafbbd9f23e46", - "url_expires_at": "2023-05-16T15:32:25Z", "include_children": false}, {"id": - "shprep_4278c856e8264aeb820b4ade399e7d58", "object": "ShipmentReport", "created_at": - "2023-05-16T15:28:53Z", "updated_at": "2023-05-16T15:28:53Z", "start_date": + "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e8baebce9247a8487a9f0999584aaf02b5.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=6531cc88069ce31106be0f4c368f70a4dcd6cae80e6451637bf326d90dfc7563", + "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": + "shprep_898f903c09e44f39a78d2327e8a2804d", "object": "ShipmentReport", "created_at": + "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230516/7529ca86b6264ecf854b6828712d404a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153155Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=208f50c63dc4c06d88a34618aaa286cc78307d42d0c152ea13afd16f136fbedf", - "url_expires_at": "2023-05-16T15:32:25Z", "include_children": false}, {"id": - "shprep_60c43d5d13bb4b34bfe4fa4c937a2ef1", "object": "ShipmentReport", "created_at": - "2023-05-16T15:28:52Z", "updated_at": "2023-05-16T15:28:53Z", "start_date": + "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e86f8b1aceebd44ebda2f226fe0f7a00ce.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=cbaf689b81a6ec5394be5a05606cd3cb76a19c1788cd360269cb5b85f03823d8", + "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": + "shprep_da46ce4ada344c028892a5f0fafcb07e", "object": "ShipmentReport", "created_at": + "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230516/a6eaf112fd684b469b8d958fab274382.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153155Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=5edc67dacee2e1a42078fb13406835142d07669bbbbfb202c8846f7add1a3deb", - "url_expires_at": "2023-05-16T15:32:25Z", "include_children": false}, {"id": - "shprep_5fa6db008b294b62a87fe844445ce284", "object": "ShipmentReport", "created_at": - "2023-02-01T23:02:05Z", "updated_at": "2023-02-01T23:02:18Z", "start_date": + "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e838c123876ff64d7fa73c8979b9d4eade.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=f34e076ae918c7379fd73d6cbd4af53d38479cf317289ba351f5299d556eb9ac", + "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": + "shprep_2a996421686a46ad9dce115eed3edc28", "object": "ShipmentReport", "created_at": + "2024-01-19T22:05:41Z", "updated_at": "2024-01-19T22:05:41Z", "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": "empty", "url": null, "url_expires_at": null, "include_children": false}], "has_more": true}' @@ -45,11 +45,9 @@ interactions: cache-control: - private, no-cache, no-store content-length: - - '3067' + - '3075' content-type: - application/json; charset=utf-8 - etag: - - W/"f2b7733f0754e65619e75858ebbb96f2" expires: - '0' pragma: @@ -67,20 +65,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e046463a1ebe786b0610024c709 + - 62c1f5d666be5cc6e788622200174dcd x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.049864' + - '0.063735' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -100,43 +98,37 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/reports/shipment?before_id=shprep_5fa6db008b294b62a87fe844445ce284&page_size=5 + uri: https://api.easypost.com/v2/reports/shipment?before_id=shprep_2a996421686a46ad9dce115eed3edc28&page_size=5 response: body: - string: '{"reports": [{"id": "shprep_c4263da0100a4175a929448ce1aba86d", "object": - "ShipmentReport", "created_at": "2023-02-01T23:02:04Z", "updated_at": "2023-02-01T23:02:18Z", + string: '{"reports": [{"id": "shprep_7a6356a335b149fd976e4ddc64d56fe1", "object": + "ShipmentReport", "created_at": "2024-01-19T22:05:41Z", "updated_at": "2024-01-19T22:05:41Z", "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": "empty", "url": null, "url_expires_at": null, "include_children": false}, - {"id": "shprep_e754d2201b8a48fe8538f5abec8c4b14", "object": "ShipmentReport", - "created_at": "2022-08-25T18:03:59Z", "updated_at": "2022-08-25T18:03:59Z", - "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "available", "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220825/a73185afe76b48158fd408c4ae1f4d19.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153155Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=9ad01063c7559cd963993d77c42a224d1d5158f7ebfaceb339fd48c24796a961", - "url_expires_at": "2023-05-16T15:32:25Z", "include_children": false}, {"id": - "shprep_ada0651fb6714f50b1ee5c9924468ab0", "object": "ShipmentReport", "created_at": - "2022-08-25T18:03:59Z", "updated_at": "2022-08-25T18:03:59Z", "start_date": - "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220825/59b6279972f34e07b7ebc670ad0f486e.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153155Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=ed061e2a0a366d3ea5a77cecb95689808b70bccfa33d547d0964efc6ac4f5e84", - "url_expires_at": "2023-05-16T15:32:25Z", "include_children": false}, {"id": - "shprep_34bee3bed97a473caacfd74512d55c76", "object": "ShipmentReport", "created_at": - "2022-08-25T18:03:59Z", "updated_at": "2022-08-25T18:03:59Z", "start_date": - "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220825/56298e793dc94db49723a09d2bb836f1.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153155Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=ded6ee72398f5a6ee2c432540c8ae1458cea4345e1bdff88434f9b0ebde69ee5", - "url_expires_at": "2023-05-16T15:32:25Z", "include_children": false}, {"id": - "shprep_2cae3cd35d9b4e4cae0d35cb09e5b31a", "object": "ShipmentReport", "created_at": - "2022-08-25T18:03:58Z", "updated_at": "2022-08-25T18:03:59Z", "start_date": - "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220825/2aff070ada83422190f0b01fd40d222b.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20230516%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230516T153155Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=9421f886b49018c2e572de038b1347ff5e565f6750137512dfd376399ab76a8e", - "url_expires_at": "2023-05-16T15:32:25Z", "include_children": false}], "has_more": - true}' + {"id": "shprep_7fe6a33016a849999785f97043857fb4", "object": "ShipmentReport", + "created_at": "2024-01-19T22:01:54Z", "updated_at": "2024-01-19T22:01:54Z", + "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": + "empty", "url": null, "url_expires_at": null, "include_children": false}, + {"id": "shprep_e9e2df2a35564753b10fabe53ee264e0", "object": "ShipmentReport", + "created_at": "2024-01-19T22:01:53Z", "updated_at": "2024-01-19T22:01:54Z", + "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": + "empty", "url": null, "url_expires_at": null, "include_children": false}, + {"id": "shprep_dd35c5f7464247ecb38ef96430402e28", "object": "ShipmentReport", + "created_at": "2024-01-19T21:58:59Z", "updated_at": "2024-01-19T21:58:59Z", + "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": + "empty", "url": null, "url_expires_at": null, "include_children": false}, + {"id": "shprep_e6f030d77dec4a3ea914844646d90498", "object": "ShipmentReport", + "created_at": "2024-01-19T21:58:59Z", "updated_at": "2024-01-19T21:58:59Z", + "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": + "empty", "url": null, "url_expires_at": null, "include_children": false}], + "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '3067' + - '1459' content-type: - application/json; charset=utf-8 - etag: - - W/"b53e16cd7e47f3970bd89b662a5de434" expires: - '0' pragma: @@ -154,20 +146,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e046463a1ebe786b0610024c71a + - 62c1f5d666be5cc6e788622200174df3 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.057884' + - '0.065879' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_retrieve_shipment_report.yaml b/tests/cassettes/test_report_retrieve_shipment_report.yaml index a740a154..0ce0bcbb 100644 --- a/tests/cassettes/test_report_retrieve_shipment_report.yaml +++ b/tests/cassettes/test_report_retrieve_shipment_report.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: '{"id": "shprep_8542118801fa46dea61818714951a7d3", "object": "ShipmentReport", - "created_at": "2023-05-16T22:18:19Z", "updated_at": "2023-05-16T22:18:19Z", + string: '{"id": "shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8", "object": "ShipmentReport", + "created_at": "2024-08-15T19:53:42Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "new", "url": null, "url_expires_at": null, "include_children": false}' headers: @@ -31,8 +31,6 @@ interactions: - '283' content-type: - application/json; charset=utf-8 - etag: - - W/"2919acd6f6211799d56e2d97eebb0824" expires: - '0' pragma: @@ -45,25 +43,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e06464012be78964bc00457b57 + - 62c1f5db66be5cc6e788620900174d15 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.046555' + - '0.089543' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -83,11 +83,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/reports/shprep_8542118801fa46dea61818714951a7d3 + uri: https://api.easypost.com/v2/reports/shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8 response: body: - string: '{"id": "shprep_8542118801fa46dea61818714951a7d3", "object": "ShipmentReport", - "created_at": "2023-05-16T22:18:19Z", "updated_at": "2023-05-16T22:18:19Z", + string: '{"id": "shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8", "object": "ShipmentReport", + "created_at": "2024-08-15T19:53:42Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "new", "url": null, "url_expires_at": null, "include_children": false}' headers: @@ -97,8 +97,6 @@ interactions: - '283' content-type: - application/json; charset=utf-8 - etag: - - W/"2919acd6f6211799d56e2d97eebb0824" expires: - '0' pragma: @@ -116,20 +114,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e06464012be78964bc00457b63 + - 62c1f5db66be5cc6e788620900174d39 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.033832' + - '0.053933' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_request_hooks.yaml b/tests/cassettes/test_request_hooks.yaml index 292d4e90..1bb4287d 100644 --- a/tests/cassettes/test_request_hooks.yaml +++ b/tests/cassettes/test_request_hooks.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_15f34d84a01847799890a35ab7f8a261", "object": "Parcel", - "created_at": "2023-06-29T22:36:03Z", "updated_at": "2023-06-29T22:36:03Z", + string: '{"id": "prcl_626510e1371b4ba9b768a61f40e04704", "object": "Parcel", + "created_at": "2024-08-15T19:52:57Z", "updated_at": "2024-08-15T19:52:57Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -31,12 +31,10 @@ interactions: - '229' content-type: - application/json; charset=utf-8 - etag: - - W/"a90098860cd1a677b56d32848a684379" expires: - '0' location: - - /api/v2/parcels/prcl_15f34d84a01847799890a35ab7f8a261 + - /api/v2/parcels/prcl_626510e1371b4ba9b768a61f40e04704 pragma: - no-cache referrer-policy: @@ -52,20 +50,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 49bdaf3f649e0753e2b8fb95000a9ec7 + - 62c1f5d666be5c99e78861610017217d x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq d3d339cca1 - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.026615' + - '0.027145' x-version-label: - - easypost-202306292027-2f32ee5ecd-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_response_hooks.yaml b/tests/cassettes/test_response_hooks.yaml index 100e87d1..3d51f63b 100644 --- a/tests/cassettes/test_response_hooks.yaml +++ b/tests/cassettes/test_response_hooks.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_d6da00b3a2154818add0e7c9025a63f6", "object": "Parcel", - "created_at": "2023-06-29T22:47:00Z", "updated_at": "2023-06-29T22:47:00Z", + string: '{"id": "prcl_bbf42641c7d441fb8aa276287be5e69e", "object": "Parcel", + "created_at": "2024-08-15T19:52:57Z", "updated_at": "2024-08-15T19:52:57Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -31,12 +31,10 @@ interactions: - '229' content-type: - application/json; charset=utf-8 - etag: - - W/"b3a4057483595cdf3ec2666106f6786a" expires: - '0' location: - - /api/v2/parcels/prcl_d6da00b3a2154818add0e7c9025a63f6 + - /api/v2/parcels/prcl_bbf42641c7d441fb8aa276287be5e69e pragma: - no-cache referrer-policy: @@ -52,21 +50,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 0598c244649e09e4e2b90015000b6647 + - 62c1f5d966be5c99e7886162001721ab x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq d3d339cca1 - - intlb2wdc d3d339cca1 - - extlb4wdc 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.032784' + - '0.031533' x-version-label: - - easypost-202306292027-2f32ee5ecd-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_retrieve_carrier_metadata.yaml b/tests/cassettes/test_retrieve_carrier_metadata.yaml index f2446902..7cc46cd2 100644 --- a/tests/cassettes/test_retrieve_carrier_metadata.yaml +++ b/tests/cassettes/test_retrieve_carrier_metadata.yaml @@ -16,7 +16,10 @@ interactions: uri: https://api.easypost.com/v2/metadata/carriers response: body: - string: '{"carriers": [{"human_readable": "Amazon MWS", "name": "amazonmws", + string: '{"carriers": [{"human_readable": "Accurate", "name": "accurate", "predefined_packages": + [], "service_levels": [{"carrier": "accurate", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Route"}], "shipment_options": + [], "supported_features": []}, {"human_readable": "Amazon MWS", "name": "amazonmws", "predefined_packages": [], "service_levels": [{"carrier": "amazonmws", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "UPS Rates"}, {"carrier": "amazonmws", "description": null, "dimensions": @@ -232,7 +235,9 @@ interactions: "ePAQ Standard International Surface Air Lift", "max_weight": null, "name": "ePAQStandardISAL"}, {"carrier": "asendiausa", "description": null, "dimensions": [], "human_readable": "ePaq Select PMEI Non-Presort", "max_weight": null, - "name": "ePaqSelectPMEINonPresort"}], "shipment_options": [], "supported_features": + "name": "ePaqSelectPMEINonPresort"}, {"carrier": "asendiausa", "description": + null, "dimensions": [], "human_readable": "ePAQ Select DDP DG", "max_weight": + null, "name": "ePAQSelectDDPDG"}], "shipment_options": [], "supported_features": []}, {"human_readable": "Australia Post", "name": "australiapost", "predefined_packages": [{"carrier": "australiapost", "description": null, "dimensions": [], "human_readable": "Carton", "max_weight": null, "name": "CARTON"}, {"carrier": "australiapost", @@ -260,138 +265,242 @@ interactions: "description": "Specific service availability is determined by your AustraliaPost account.", "dimensions": [], "human_readable": "Commercial", "max_weight": null, "name": "Commercial"}], "shipment_options": [], "supported_features": - [{"carrier": "australiapost", "description": null, "name": "labels", "supported": - true}, {"carrier": "australiapost", "description": null, "name": "orders", - "supported": true}, {"carrier": "australiapost", "description": null, "name": - "pickups", "supported": false}, {"carrier": "australiapost", "description": - null, "name": "refunds", "supported": true}, {"carrier": "australiapost", - "description": "Domestic only.", "name": "returns", "supported": true}, {"carrier": - "australiapost", "description": null, "name": "scanforms", "supported": true}, - {"carrier": "australiapost", "description": null, "name": "rating", "supported": - false}, {"carrier": "australiapost", "description": null, "name": "tracking", + [{"carrier": "australiapost", "description": null, "name": "bill_on_delivery", "supported": false}, {"carrier": "australiapost", "description": "Not available with Print as You Go.", "name": "bill_on_label_purchase", "supported": true}, - {"carrier": "australiapost", "description": null, "name": "bill_on_delivery", - "supported": false}, {"carrier": "australiapost", "description": null, "name": - "bill_on_scan", "supported": false}, {"carrier": "australiapost", "description": - "Daily manifesting when using Print as You Go.", "name": "bill_on_manifest", - "supported": true}, {"carrier": "australiapost", "description": null, "name": - "commercial_invoices", "supported": null}, {"carrier": "australiapost", "description": - null, "name": "delivers_to_po_box", "supported": null}, {"carrier": "australiapost", - "description": null, "name": "sort_codes", "supported": false}, {"carrier": - "australiapost", "description": null, "name": "test_environment", "supported": - true}]}, {"human_readable": "AxlehireV3", "name": "axlehirev3", "predefined_packages": - [], "service_levels": [{"carrier": "axlehirev3", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "AxleHireDelivery"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "Better - Trucks", "name": "bettertrucks", "predefined_packages": [], "service_levels": - [{"carrier": "bettertrucks", "description": null, "dimensions": [], "human_readable": - "Next Day", "max_weight": null, "name": "NEXT_DAY"}, {"carrier": "bettertrucks", - "description": null, "dimensions": [], "human_readable": "Express", "max_weight": - null, "name": "EXPRESS"}], "shipment_options": [], "supported_features": []}, - {"human_readable": "Canada Post", "name": "canadapost", "predefined_packages": - [], "service_levels": [{"carrier": "canadapost", "description": null, "dimensions": - [], "human_readable": "Delivered Tonight", "max_weight": null, "name": "DeliveredTonight"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Regular Parcel", "max_weight": null, "name": "RegularParcel"}, {"carrier": - "canadapost", "description": null, "dimensions": [], "human_readable": "Expedited + {"carrier": "australiapost", "description": "Daily manifesting when using + Print as You Go.", "name": "bill_on_manifest", "supported": true}, {"carrier": + "australiapost", "description": null, "name": "bill_on_scan", "supported": + false}, {"carrier": "australiapost", "description": null, "name": "commercial_invoices", + "supported": null}, {"carrier": "australiapost", "description": null, "name": + "delivers_to_po_box", "supported": null}, {"carrier": "australiapost", "description": + null, "name": "labels", "supported": true}, {"carrier": "australiapost", "description": + null, "name": "orders", "supported": true}, {"carrier": "australiapost", "description": + null, "name": "pickups", "supported": false}, {"carrier": "australiapost", + "description": null, "name": "rating", "supported": true}, {"carrier": "australiapost", + "description": null, "name": "refunds", "supported": true}, {"carrier": "australiapost", + "description": "Domestic only.", "name": "returns", "supported": true}, {"carrier": + "australiapost", "description": null, "name": "scanforms", "supported": true}, + {"carrier": "australiapost", "description": null, "name": "sort_codes", "supported": + false}, {"carrier": "australiapost", "description": null, "name": "test_environment", + "supported": true}]}, {"human_readable": "Better Trucks", "name": "bettertrucks", + "predefined_packages": [], "service_levels": [{"carrier": "bettertrucks", + "description": null, "dimensions": [], "human_readable": "Next Day", "max_weight": + null, "name": "NEXT_DAY"}, {"carrier": "bettertrucks", "description": null, + "dimensions": [], "human_readable": "Express", "max_weight": null, "name": + "EXPRESS"}], "shipment_options": [], "supported_features": []}, {"human_readable": + "Bluestreak", "name": "bluestreak", "predefined_packages": [], "service_levels": + [{"carrier": "bluestreak", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "N5"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "Canada Post", "name": "canadapost", "predefined_packages": + [], "service_levels": [{"carrier": "canadapost", "description": "Up to 3 days + for local delivery, up to 6 days for regional delivery and up to 10 days for + national delivery", "dimensions": [], "human_readable": "Regular Parcel", + "max_weight": null, "name": "RegularParcel"}, {"carrier": "canadapost", "description": + "Up to 2 days for local delivery, up to 4 days for regional delivery and up + to 8 days for national delivery", "dimensions": [], "human_readable": "Expedited Parcel", "max_weight": null, "name": "ExpeditedParcel"}, {"carrier": "canadapost", - "description": null, "dimensions": [], "human_readable": "Xpresspost", "max_weight": - null, "name": "Xpresspost"}, {"carrier": "canadapost", "description": null, - "dimensions": [], "human_readable": "Xpresspost Certified", "max_weight": - null, "name": "XpresspostCertified"}, {"carrier": "canadapost", "description": - null, "dimensions": [], "human_readable": "Priority", "max_weight": null, - "name": "Priority"}, {"carrier": "canadapost", "description": null, "dimensions": - [], "human_readable": "Library Books", "max_weight": null, "name": "LibraryBooks"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Expedited Parcel USA", "max_weight": null, "name": "ExpeditedParcelUSA"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Priority Worldwide Envelope USA", "max_weight": null, "name": "PriorityWorldwideEnvelopeUSA"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Priority Worldwide Pak USA", "max_weight": null, "name": "PriorityWorldwidePakUSA"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Priority Worldwide Parcel USA", "max_weight": null, "name": "PriorityWorldwideParcelUSA"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Small Packet USA Air", "max_weight": null, "name": "SmallPacketUSAAir"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Tracked Packet USA", "max_weight": null, "name": "TrackedPacketUSA"}, {"carrier": - "canadapost", "description": null, "dimensions": [], "human_readable": "Tracked - Packet USA LVM", "max_weight": null, "name": "TrackedPacketUSALVM"}, {"carrier": - "canadapost", "description": null, "dimensions": [], "human_readable": "Xpresspost + "description": "Next-day and 2-day delivery", "dimensions": [], "human_readable": + "Xpresspost", "max_weight": null, "name": "Xpresspost"}, {"carrier": "canadapost", + "description": "Next-day delivery with signature", "dimensions": [], "human_readable": + "Priority", "max_weight": null, "name": "Priority"}, {"carrier": "canadapost", + "description": "Delivery in as little as 4 business days for larger parcels", + "dimensions": [], "human_readable": "Expedited Parcel USA", "max_weight": + null, "name": "ExpeditedParcelUSA"}, {"carrier": "canadapost", "description": + "Delivery in as little as 5 business days for small and lightweight items", + "dimensions": [], "human_readable": "Small Packet USA Air", "max_weight": + null, "name": "SmallPacketUSAAir"}, {"carrier": "canadapost", "description": + "Delivery in as little as 4 business days for small and lightweight items", + "dimensions": [], "human_readable": "Tracked Packet USA", "max_weight": null, + "name": "TrackedPacketUSA"}, {"carrier": "canadapost", "description": null, + "dimensions": [], "human_readable": "Tracked Packet USA LVM", "max_weight": + null, "name": "TrackedPacketUSALVM"}, {"carrier": "canadapost", "description": + "Delivery in 2 and 3 business days", "dimensions": [], "human_readable": "Xpresspost USA", "max_weight": null, "name": "XpresspostUSA"}, {"carrier": "canadapost", - "description": null, "dimensions": [], "human_readable": "Xpresspost International", - "max_weight": null, "name": "XpresspostInternational"}, {"carrier": "canadapost", - "description": null, "dimensions": [], "human_readable": "International Parcel - Air", "max_weight": null, "name": "InternationalParcelAir"}, {"carrier": "canadapost", - "description": null, "dimensions": [], "human_readable": "International Parcel - Surface", "max_weight": null, "name": "InternationalParcelSurface"}, {"carrier": - "canadapost", "description": null, "dimensions": [], "human_readable": "Priority - Worldwide Envelope Intl", "max_weight": null, "name": "PriorityWorldwideEnvelopeIntl"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Priority Worldwide Pak Intl", "max_weight": null, "name": "PriorityWorldwidePakIntl"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Priority Worldwide Parcel Intl", "max_weight": null, "name": "PriorityWorldwideParcelIntl"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Small Packet International Air", "max_weight": null, "name": "SmallPacketInternationalAir"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Small Packet International Surface", "max_weight": null, "name": "SmallPacketInternationalSurface"}, - {"carrier": "canadapost", "description": null, "dimensions": [], "human_readable": - "Tracked Packet International", "max_weight": null, "name": "TrackedPacketInternational"}], - "shipment_options": [], "supported_features": [{"carrier": "canadapost", "description": - null, "name": "labels", "supported": true}, {"carrier": "canadapost", "description": - null, "name": "orders", "supported": false}, {"carrier": "canadapost", "description": - null, "name": "pickups", "supported": true}, {"carrier": "canadapost", "description": - null, "name": "refunds", "supported": true}, {"carrier": "canadapost", "description": - null, "name": "returns", "supported": true}, {"carrier": "canadapost", "description": - null, "name": "scanforms", "supported": true}, {"carrier": "canadapost", "description": - null, "name": "rating", "supported": false}, {"carrier": "canadapost", "description": - null, "name": "tracking", "supported": false}, {"carrier": "canadapost", "description": - null, "name": "bill_on_label_purchase", "supported": false}, {"carrier": "canadapost", - "description": null, "name": "bill_on_delivery", "supported": true}, {"carrier": - "canadapost", "description": null, "name": "bill_on_scan", "supported": false}, + "description": "Delivery in as little as 4 business days", "dimensions": [], + "human_readable": "Xpresspost International", "max_weight": null, "name": + "XpresspostInternational"}, {"carrier": "canadapost", "description": "Delivery + in as little as 6 business days for larger parcels", "dimensions": [], "human_readable": + "International Parcel Air", "max_weight": null, "name": "InternationalParcelAir"}, + {"carrier": "canadapost", "description": "Delivery in 1 month and up to 3 + months", "dimensions": [], "human_readable": "International Parcel Surface", + "max_weight": null, "name": "InternationalParcelSurface"}, {"carrier": "canadapost", + "description": "Delivery in as little as 6 business days for small and lightweight + items", "dimensions": [], "human_readable": "Small Packet International Air", + "max_weight": null, "name": "SmallPacketInternationalAir"}, {"carrier": "canadapost", + "description": "Delivery in 1 month and up to 3 months for small and lightweight + items", "dimensions": [], "human_readable": "Small Packet International Surface", + "max_weight": null, "name": "SmallPacketInternationalSurface"}, {"carrier": + "canadapost", "description": "Delivery in as little as 6 business days", "dimensions": + [], "human_readable": "Tracked Packet International", "max_weight": null, + "name": "TrackedPacketInternational"}, {"carrier": "canadapost", "description": + "Up to 3 days for local delivery, up to 6 days for regional delivery and up + to 10 days for national delivery", "dimensions": [], "human_readable": "Expedited + Parcel Plus", "max_weight": null, "name": "ExpeditedParcelPlus"}], "shipment_options": + [], "supported_features": [{"carrier": "canadapost", "description": null, + "name": "bill_on_delivery", "supported": true}, {"carrier": "canadapost", + "description": null, "name": "bill_on_label_purchase", "supported": false}, {"carrier": "canadapost", "description": null, "name": "bill_on_manifest", "supported": true}, {"carrier": "canadapost", "description": null, "name": - "commercial_invoices", "supported": true}, {"carrier": "canadapost", "description": - null, "name": "delivers_to_po_box", "supported": null}, {"carrier": "canadapost", - "description": null, "name": "sort_codes", "supported": false}, {"carrier": - "canadapost", "description": null, "name": "test_environment", "supported": - true}]}, {"human_readable": "Canpar", "name": "canpar", "predefined_packages": - [], "service_levels": [{"carrier": "canpar", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Ground"}, {"carrier": - "canpar", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "SelectLetter"}, {"carrier": "canpar", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "SelectPak"}, + "bill_on_scan", "supported": false}, {"carrier": "canadapost", "description": + null, "name": "commercial_invoices", "supported": true}, {"carrier": "canadapost", + "description": null, "name": "delivers_to_po_box", "supported": null}, {"carrier": + "canadapost", "description": null, "name": "labels", "supported": true}, {"carrier": + "canadapost", "description": null, "name": "orders", "supported": false}, + {"carrier": "canadapost", "description": null, "name": "pickups", "supported": + true}, {"carrier": "canadapost", "description": null, "name": "rating", "supported": + true}, {"carrier": "canadapost", "description": null, "name": "refunds", "supported": + true}, {"carrier": "canadapost", "description": null, "name": "returns", "supported": + true}, {"carrier": "canadapost", "description": null, "name": "scanforms", + "supported": true}, {"carrier": "canadapost", "description": null, "name": + "sort_codes", "supported": false}, {"carrier": "canadapost", "description": + null, "name": "test_environment", "supported": true}]}, {"human_readable": + "Canpar", "name": "canpar", "predefined_packages": [], "service_levels": [{"carrier": + "canpar", "description": null, "dimensions": [], "human_readable": "Ground", + "max_weight": null, "name": "Ground"}, {"carrier": "canpar", "description": + null, "dimensions": [], "human_readable": "USA", "max_weight": null, "name": + "USA"}, {"carrier": "canpar", "description": null, "dimensions": [], "human_readable": + "Select Letter", "max_weight": null, "name": "SelectLetter"}, {"carrier": + "canpar", "description": null, "dimensions": [], "human_readable": "Select + Pak", "max_weight": null, "name": "SelectPak"}, {"carrier": "canpar", "description": + null, "dimensions": [], "human_readable": "Select", "max_weight": null, "name": + "Select"}, {"carrier": "canpar", "description": null, "dimensions": [], "human_readable": + "Overnight Letter", "max_weight": null, "name": "OvernightLetter"}, {"carrier": + "canpar", "description": null, "dimensions": [], "human_readable": "Overnight + Pak", "max_weight": null, "name": "OvernightPak"}, {"carrier": "canpar", "description": + null, "dimensions": [], "human_readable": "Overnight", "max_weight": null, + "name": "Overnight"}, {"carrier": "canpar", "description": null, "dimensions": + [], "human_readable": "USA Letter", "max_weight": null, "name": "USALetter"}, {"carrier": "canpar", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Select"}, {"carrier": "canpar", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "OvernightLetter"}, {"carrier": "canpar", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "OvernightPak"}, {"carrier": - "canpar", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Overnight"}, {"carrier": "canpar", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "SelectUSA"}, {"carrier": - "canpar", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "USAPak"}, {"carrier": "canpar", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "USALetter"}, {"carrier": - "canpar", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "USA"}, {"carrier": "canpar", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "International"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "CDL - Last Mile Solutions", "name": "cdllastmilesolutions", "predefined_packages": + "USA Pak", "max_weight": null, "name": "USAPak"}, {"carrier": "canpar", "description": + null, "dimensions": [], "human_readable": "Select USA", "max_weight": null, + "name": "SelectUSA"}, {"carrier": "canpar", "description": null, "dimensions": + [], "human_readable": "International", "max_weight": null, "name": "International"}], + "shipment_options": [{"carrier": "canpar", "deprecated": false, "description": + null, "human_readable": "Additional Handling", "name": "additional_handling", + "type": "boolean"}, {"carrier": "canpar", "deprecated": false, "description": + null, "human_readable": "Carrier Insurance Amount", "name": "carrier_insurance_amount", + "type": "float"}, {"carrier": "canpar", "deprecated": false, "description": + null, "human_readable": "Handling Instructions", "name": "handling_instructions", + "type": "string"}, {"carrier": "canpar", "deprecated": false, "description": + null, "human_readable": "Label Format", "name": "label_format", "type": "string"}, + {"carrier": "canpar", "deprecated": false, "description": null, "human_readable": + "Label Size", "name": "label_size", "type": "string"}, {"carrier": "canpar", + "deprecated": false, "description": null, "human_readable": "Delivery Confirmation", + "name": "delivery_confirmation", "type": "string"}, {"carrier": "canpar", + "deprecated": false, "description": null, "human_readable": "Cod Amount", + "name": "cod_amount", "type": "string"}, {"carrier": "canpar", "deprecated": + false, "description": null, "human_readable": "Cod Method", "name": "cod_method", + "type": "string"}, {"carrier": "canpar", "deprecated": true, "description": + null, "human_readable": "Date Advance", "name": "date_advance", "type": "integer"}, + {"carrier": "canpar", "deprecated": false, "description": null, "human_readable": + "Billing Ref", "name": "billing_ref", "type": "string"}], "supported_features": + [{"carrier": "canpar", "description": null, "name": "bill_on_delivery", "supported": + null}, {"carrier": "canpar", "description": null, "name": "bill_on_label_purchase", + "supported": null}, {"carrier": "canpar", "description": null, "name": "bill_on_manifest", + "supported": null}, {"carrier": "canpar", "description": null, "name": "bill_on_scan", + "supported": null}, {"carrier": "canpar", "description": null, "name": "commercial_invoices", + "supported": false}, {"carrier": "canpar", "description": null, "name": "delivers_to_po_box", + "supported": false}, {"carrier": "canpar", "description": null, "name": "labels", + "supported": true}, {"carrier": "canpar", "description": null, "name": "orders", + "supported": false}, {"carrier": "canpar", "description": null, "name": "pickups", + "supported": true}, {"carrier": "canpar", "description": null, "name": "rating", + "supported": true}, {"carrier": "canpar", "description": null, "name": "refunds", + "supported": true}, {"carrier": "canpar", "description": "Subject to regular + pricing.", "name": "returns", "supported": false}, {"carrier": "canpar", "description": + null, "name": "scanforms", "supported": true}, {"carrier": "canpar", "description": + null, "name": "sort_codes", "supported": false}, {"carrier": "canpar", "description": + null, "name": "test_environment", "supported": true}]}, {"human_readable": + "CDL Last Mile Solutions", "name": "cdllastmilesolutions", "predefined_packages": [], "service_levels": [{"carrier": "cdllastmilesolutions", "description": + null, "dimensions": [], "human_readable": "DISTRIBUTION", "max_weight": null, + "name": "DISTRIBUTION"}, {"carrier": "cdllastmilesolutions", "description": + null, "dimensions": [], "human_readable": "Same Day", "max_weight": null, + "name": "Same Day"}], "shipment_options": [{"carrier": "cdllastmilesolutions", + "deprecated": false, "description": null, "human_readable": "Delivery Max + Datetime", "name": "delivery_max_datetime", "type": "datetime"}, {"carrier": + "cdllastmilesolutions", "deprecated": false, "description": null, "human_readable": + "Delivery Min Datetime", "name": "delivery_min_datetime", "type": "datetime"}, + {"carrier": "cdllastmilesolutions", "deprecated": false, "description": null, + "human_readable": "Handling Instructions", "name": "handling_instructions", + "type": "string"}, {"carrier": "cdllastmilesolutions", "deprecated": false, + "description": null, "human_readable": "Invoice Number", "name": "invoice_number", + "type": "string"}, {"carrier": "cdllastmilesolutions", "deprecated": false, + "description": null, "human_readable": "Label Format", "name": "label_format", + "type": "string"}, {"carrier": "cdllastmilesolutions", "deprecated": false, + "description": null, "human_readable": "Pickup Max Datetime", "name": "pickup_max_datetime", + "type": "datetime"}, {"carrier": "cdllastmilesolutions", "deprecated": false, + "description": null, "human_readable": "Pickup Min Datetime", "name": "pickup_min_datetime", + "type": "datetime"}, {"carrier": "cdllastmilesolutions", "deprecated": true, + "description": null, "human_readable": "Print Custom 1", "name": "print_custom_1", + "type": "string"}, {"carrier": "cdllastmilesolutions", "deprecated": true, + "description": null, "human_readable": "Print Custom 1 Barcode", "name": "print_custom_1_barcode", + "type": "boolean"}, {"carrier": "cdllastmilesolutions", "deprecated": true, + "description": null, "human_readable": "Print Custom 2", "name": "print_custom_2", + "type": "string"}, {"carrier": "cdllastmilesolutions", "deprecated": true, + "description": null, "human_readable": "Print Custom 2 Barcode", "name": "print_custom_2_barcode", + "type": "boolean"}], "supported_features": [{"carrier": "cdllastmilesolutions", + "description": null, "name": "bill_on_delivery", "supported": null}, {"carrier": + "cdllastmilesolutions", "description": null, "name": "bill_on_label_purchase", + "supported": null}, {"carrier": "cdllastmilesolutions", "description": null, + "name": "bill_on_manifest", "supported": null}, {"carrier": "cdllastmilesolutions", + "description": null, "name": "bill_on_scan", "supported": null}, {"carrier": + "cdllastmilesolutions", "description": null, "name": "commercial_invoices", + "supported": false}, {"carrier": "cdllastmilesolutions", "description": null, + "name": "delivers_to_po_box", "supported": null}, {"carrier": "cdllastmilesolutions", + "description": null, "name": "labels", "supported": true}, {"carrier": "cdllastmilesolutions", + "description": null, "name": "orders", "supported": false}, {"carrier": "cdllastmilesolutions", + "description": null, "name": "pickups", "supported": true}, {"carrier": "cdllastmilesolutions", + "description": null, "name": "rating", "supported": true}, {"carrier": "cdllastmilesolutions", + "description": null, "name": "refunds", "supported": false}, {"carrier": "cdllastmilesolutions", + "description": null, "name": "returns", "supported": false}, {"carrier": "cdllastmilesolutions", + "description": null, "name": "scanforms", "supported": false}, {"carrier": + "cdllastmilesolutions", "description": null, "name": "sort_codes", "supported": + true}, {"carrier": "cdllastmilesolutions", "description": null, "name": "test_environment", + "supported": null}]}, {"human_readable": "Chronopost", "name": "chronopost", + "predefined_packages": [], "service_levels": [], "shipment_options": [], "supported_features": + []}, {"human_readable": "Cirro E-Commerce", "name": "cirroecommerce", "predefined_packages": + [], "service_levels": [{"carrier": "cirroecommerce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "CADOECOEA + (CA Domestic Economy East)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "DISTRIBUTION"}, {"carrier": "cdllastmilesolutions", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "Same - Day"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "Chronopost", "name": "chronopost", "predefined_packages": [], "service_levels": - [], "shipment_options": [], "supported_features": []}, {"human_readable": - "CloudSort", "name": "cloudsort", "predefined_packages": [], "service_levels": - [], "shipment_options": [], "supported_features": []}, {"human_readable": - "Courier Express", "name": "courierexpress", "predefined_packages": [], "service_levels": - [{"carrier": "courierexpress", "description": null, "dimensions": [], "human_readable": - "Basic Parcel", "max_weight": null, "name": "BASIC_PARCEL"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "Couriers Please", "name": - "couriersplease", "predefined_packages": [], "service_levels": [{"carrier": - "couriersplease", "description": null, "dimensions": [], "human_readable": + "CADOECOWE (CA Domestic Economy West)"}, {"carrier": "cirroecommerce", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "CAECOCE (US to CA Economy)"}, {"carrier": "cirroecommerce", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "CAECONE (US to CA Economy)"}, {"carrier": "cirroecommerce", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "CAECOWE (US to CA Economy)"}, {"carrier": "cirroecommerce", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "ECOCE (Economy Central)"}, {"carrier": "cirroecommerce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ECOEA + (Economy East)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "ECONE (Economy Northeast)"}, + {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "ECOSO (Economy South)"}, {"carrier": "cirroecommerce", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "ECOWE (Economy West)"}, {"carrier": "cirroecommerce", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "EUECOWE (US to Europe Economy)"}, {"carrier": "cirroecommerce", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "EXPBNE (Expedited Northeast)"}, {"carrier": "cirroecommerce", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "EXPWE (Expedited West)"}, {"carrier": "cirroecommerce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "REGCE + (Regional Central)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "REGEA (Regional East)"}, + {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "REGNE (Regional Northeast)"}, {"carrier": + "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "REGSO (Regional South)"}, {"carrier": "cirroecommerce", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "REGWE (Regional West)"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "Courier Express", "name": "courierexpress", "predefined_packages": + [], "service_levels": [{"carrier": "courierexpress", "description": null, + "dimensions": [], "human_readable": "Basic Parcel", "max_weight": null, "name": + "BASIC_PARCEL"}], "shipment_options": [], "supported_features": []}, {"human_readable": + "Couriers Please", "name": "couriersplease", "predefined_packages": [], "service_levels": + [{"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": "Road Express", "max_weight": null, "name": "RoadExpress"}, {"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": "Agg Exp Authority To Leave P10", "max_weight": null, "name": "AggExpAtlP10"}, {"carrier": "couriersplease", @@ -478,8 +587,6 @@ interactions: "couriersplease", "description": null, "dimensions": [], "human_readable": "500 Gram Parcel Authority To Leave", "max_weight": null, "name": "500GramParcelATL"}, {"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": - "1 Kilogram Parcel", "max_weight": null, "name": "1KgParcel"}, {"carrier": - "couriersplease", "description": null, "dimensions": [], "human_readable": "10 Kilogram Parcel", "max_weight": null, "name": "10KgParcel"}, {"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": "10 Kilogram Parcel Authority To Leave", "max_weight": null, "name": "10KgParcelATL"}, @@ -498,12 +605,8 @@ interactions: {"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": "2 Kilogram Parcel Authority To Leave", "max_weight": null, "name": "2KgParcelATL"}, {"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": - "3 Kilogram Parcel", "max_weight": null, "name": "3KgParcel"}, {"carrier": - "couriersplease", "description": null, "dimensions": [], "human_readable": "3 Kilogram Parcel Authority To Leave", "max_weight": null, "name": "3KgParcelATL"}, {"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": - "5 Kilogram Parcel", "max_weight": null, "name": "5KgParcel"}, {"carrier": - "couriersplease", "description": null, "dimensions": [], "human_readable": "5 Kilogram Parcel Authority To Leave", "max_weight": null, "name": "5Kg Parcel ATL"}, {"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": "Australian City Express Signature", "max_weight": null, @@ -546,14 +649,27 @@ interactions: "International Express", "max_weight": null, "name": "InternationalExpress"}, {"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": "500gm Parcel", "max_weight": null, "name": "500gmParcel"}, {"carrier": "couriersplease", - "description": null, "dimensions": [], "human_readable": "1 Kilogram Parcel", - "max_weight": null, "name": "1kgParcel"}, {"carrier": "couriersplease", "description": - null, "dimensions": [], "human_readable": "3 Kilogram Parcel", "max_weight": - null, "name": "3kgParcel"}, {"carrier": "couriersplease", "description": null, - "dimensions": [], "human_readable": "5 Kilogram Parcel", "max_weight": null, - "name": "5kgParcel"}], "shipment_options": [], "supported_features": []}, - {"human_readable": "DAI Post", "name": "daipost", "predefined_packages": [], - "service_levels": [{"carrier": "daipost", "description": null, "dimensions": + "description": null, "dimensions": [], "human_readable": "1kg Parcel", "max_weight": + null, "name": "1KgParcel"}, {"carrier": "couriersplease", "description": null, + "dimensions": [], "human_readable": "3kg Parcel", "max_weight": null, "name": + "3KgParcel"}, {"carrier": "couriersplease", "description": null, "dimensions": + [], "human_readable": "5kg Parcel", "max_weight": null, "name": "5KgParcel"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "CSLogistics", + "name": "cslogistics", "predefined_packages": [], "service_levels": [{"carrier": + "cslogistics", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "Distribution"}, {"carrier": "cslogistics", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "ASAP"}, {"carrier": "cslogistics", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "Freight Priority"}, {"carrier": + "cslogistics", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "Freight Regular"}, {"carrier": "cslogistics", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "Priority"}, {"carrier": "cslogistics", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "Regular"}, + {"carrier": "cslogistics", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Scheduled"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "DAI Post", "name": "daipost", "predefined_packages": + [], "service_levels": [{"carrier": "daipost", "description": null, "dimensions": [], "human_readable": "Parcel Epacket", "max_weight": null, "name": "ParcelMax"}, {"carrier": "daipost", "description": null, "dimensions": [], "human_readable": "International Economy", "max_weight": null, "name": "InternationalEconomy"}, @@ -562,91 +678,148 @@ interactions: {"carrier": "daipost", "description": null, "dimensions": [], "human_readable": "International Express", "max_weight": null, "name": "InternationalExpress"}, {"carrier": "daipost", "description": null, "dimensions": [], "human_readable": - "Domestic Tracked", "max_weight": null, "name": "DomesticTracked"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "DeliverIt", "name": "deliverit", + "Domestic Tracked", "max_weight": null, "name": "DomesticTracked"}, {"carrier": + "daipost", "description": null, "dimensions": [], "human_readable": "Parcel + Right", "max_weight": null, "name": "ParcelRight"}], "shipment_options": [], + "supported_features": []}, {"human_readable": "Deliver-It", "name": "deliverit", "predefined_packages": [], "service_levels": [{"carrier": "deliverit", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Afternoon"}, {"carrier": "deliverit", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Early-It"}, {"carrier": + "Saturday"}, {"carrier": "deliverit", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "Economy"}, {"carrier": "deliverit", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "Economy"}, {"carrier": "deliverit", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Noon-It"}, {"carrier": "deliverit", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "Saturday"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "Deutsche Post", "name": - "deutschepost", "predefined_packages": [], "service_levels": [{"carrier": - "deutschepost", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "PacketPlus"}], "shipment_options": [], "supported_features": - []}, {"human_readable": "Deutsche Post UK", "name": "deutschepostuk", "predefined_packages": - [], "service_levels": [{"carrier": "deutschepostuk", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "PriorityPacketPlus"}, - {"carrier": "deutschepostuk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "PriorityPacket"}, {"carrier": "deutschepostuk", + "max_weight": null, "name": "Noon-It"}, {"carrier": "deliverit", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "Early-It"}, {"carrier": "deliverit", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "Afternoon"}], "shipment_options": + [], "supported_features": [{"carrier": "deliverit", "description": null, "name": + "bill_on_delivery", "supported": true}, {"carrier": "deliverit", "description": + null, "name": "bill_on_label_purchase", "supported": false}, {"carrier": "deliverit", + "description": null, "name": "bill_on_manifest", "supported": false}, {"carrier": + "deliverit", "description": null, "name": "bill_on_scan", "supported": false}, + {"carrier": "deliverit", "description": null, "name": "commercial_invoices", + "supported": false}, {"carrier": "deliverit", "description": null, "name": + "labels", "supported": true}, {"carrier": "deliverit", "description": null, + "name": "orders", "supported": false}, {"carrier": "deliverit", "description": + null, "name": "pickups", "supported": false}, {"carrier": "deliverit", "description": + null, "name": "rating", "supported": true}, {"carrier": "deliverit", "description": + null, "name": "refunds", "supported": true}, {"carrier": "deliverit", "description": + null, "name": "returns", "supported": false}, {"carrier": "deliverit", "description": + null, "name": "scanforms", "supported": false}, {"carrier": "deliverit", "description": + null, "name": "sort_codes", "supported": false}, {"carrier": "deliverit", + "description": null, "name": "test_environment", "supported": false}]}, {"human_readable": + "Deutsche Post", "name": "deutschepost", "predefined_packages": [], "service_levels": + [{"carrier": "deutschepost", "description": null, "dimensions": [], "human_readable": + "Packet Plus", "max_weight": null, "name": "PacketPlus"}], "shipment_options": + [{"carrier": "deutschepost", "deprecated": false, "description": null, "human_readable": + "Additional Handling", "name": "additional_handling", "type": "boolean"}, + {"carrier": "deutschepost", "deprecated": true, "description": null, "human_readable": + "Bill Third Party Account", "name": "bill_third_party_account", "type": "string"}, + {"carrier": "deutschepost", "deprecated": false, "description": null, "human_readable": + "Carrier Insurance Amount", "name": "carrier_insurance_amount", "type": "float"}, + {"carrier": "deutschepost", "deprecated": false, "description": null, "human_readable": + "Cod Amount", "name": "cod_amount", "type": "string"}, {"carrier": "deutschepost", + "deprecated": false, "description": null, "human_readable": "Cod Method", + "name": "cod_method", "type": "string"}, {"carrier": "deutschepost", "deprecated": + false, "description": null, "human_readable": "Cost Center", "name": "cost_center", + "type": "string"}, {"carrier": "deutschepost", "deprecated": true, "description": + null, "human_readable": "Delivered Duty Paid", "name": "delivered_duty_paid", + "type": "boolean"}, {"carrier": "deutschepost", "deprecated": false, "description": + null, "human_readable": "Delivery Confirmation", "name": "delivery_confirmation", + "type": "string"}, {"carrier": "deutschepost", "deprecated": false, "description": + null, "human_readable": "Handling Instructions", "name": "handling_instructions", + "type": "string"}, {"carrier": "deutschepost", "deprecated": false, "description": + null, "human_readable": "Invoice Number", "name": "invoice_number", "type": + "string"}, {"carrier": "deutschepost", "deprecated": false, "description": + null, "human_readable": "Label Date", "name": "label_date", "type": "datetime"}, + {"carrier": "deutschepost", "deprecated": false, "description": null, "human_readable": + "Label Format", "name": "label_format", "type": "string"}, {"carrier": "deutschepost", + "deprecated": false, "description": null, "human_readable": "Label Size", + "name": "label_size", "type": "string"}, {"carrier": "deutschepost", "deprecated": + true, "description": null, "human_readable": "Print Custom 1", "name": "print_custom_1", + "type": "string"}, {"carrier": "deutschepost", "deprecated": true, "description": + null, "human_readable": "Print Custom 2", "name": "print_custom_2", "type": + "string"}, {"carrier": "deutschepost", "deprecated": false, "description": + null, "human_readable": "Return Service", "name": "return_service", "type": + "string"}], "supported_features": [{"carrier": "deutschepost", "description": + null, "name": "bill_on_delivery", "supported": null}, {"carrier": "deutschepost", + "description": null, "name": "bill_on_label_purchase", "supported": null}, + {"carrier": "deutschepost", "description": null, "name": "bill_on_manifest", + "supported": null}, {"carrier": "deutschepost", "description": null, "name": + "bill_on_scan", "supported": null}, {"carrier": "deutschepost", "description": + null, "name": "commercial_invoices", "supported": false}, {"carrier": "deutschepost", + "description": null, "name": "delivers_to_po_box", "supported": false}, {"carrier": + "deutschepost", "description": null, "name": "labels", "supported": true}, + {"carrier": "deutschepost", "description": null, "name": "orders", "supported": + false}, {"carrier": "deutschepost", "description": null, "name": "pickups", + "supported": false}, {"carrier": "deutschepost", "description": null, "name": + "rating", "supported": true}, {"carrier": "deutschepost", "description": null, + "name": "refunds", "supported": false}, {"carrier": "deutschepost", "description": + null, "name": "returns", "supported": true}, {"carrier": "deutschepost", "description": + null, "name": "scanforms", "supported": false}, {"carrier": "deutschepost", + "description": null, "name": "sort_codes", "supported": false}, {"carrier": + "deutschepost", "description": null, "name": "test_environment", "supported": + false}]}, {"human_readable": "Deutsche Post UK", "name": "deutschepostuk", + "predefined_packages": [], "service_levels": [{"carrier": "deutschepostuk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "PriorityPacketTracked"}, {"carrier": "deutschepostuk", "description": + null, "name": "PriorityPacketPlus"}, {"carrier": "deutschepostuk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "BusinessMailRegistered"}, {"carrier": "deutschepostuk", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "StandardPacket"}, + "PriorityPacket"}, {"carrier": "deutschepostuk", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "PriorityPacketTracked"}, {"carrier": "deutschepostuk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "BusinessMailStandard"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "DHL eCommerce Asia", "name": - "dhlecommerceasia", "predefined_packages": [], "service_levels": [{"carrier": - "dhlecommerceasia", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Packet"}, {"carrier": "dhlecommerceasia", + null, "max_weight": null, "name": "BusinessMailRegistered"}, {"carrier": "deutschepostuk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "PacketPlus"}, {"carrier": "dhlecommerceasia", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ParcelDirect"}, {"carrier": "dhlecommerceasia", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "ParcelDirectExpedited"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "DHL - eCommerce Solutions", "name": "dhlecommercesolutions", "predefined_packages": - [], "service_levels": [{"carrier": "dhlecommercesolutions", "description": + null, "name": "StandardPacket"}, {"carrier": "deutschepostuk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "DHLParcelExpedited"}, {"carrier": "dhlecommercesolutions", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "DHLParcelExpeditedMax"}, {"carrier": "dhlecommercesolutions", "description": + "BusinessMailStandard"}], "shipment_options": [], "supported_features": []}, + {"human_readable": "DHL eCommerce Solutions", "name": "dhlecommercesolutions", + "predefined_packages": [], "service_levels": [{"carrier": "dhlecommercesolutions", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "DHLParcelExpedited"}, {"carrier": "dhlecommercesolutions", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "DHLParcelExpeditedMax"}, {"carrier": "dhlecommercesolutions", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "DHLParcelGround"}, {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "DHLParcelGround"}, {"carrier": "dhlecommercesolutions", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "DHLBPMExpedited"}, + "DHLBPMExpedited"}, {"carrier": "dhlecommercesolutions", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "DHLBPMGround"}, {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "DHLBPMGround"}, {"carrier": - "dhlecommercesolutions", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "DHLParcelInternationalDirect"}, {"carrier": - "dhlecommercesolutions", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "DHLParcelInternationalStandard"}, {"carrier": - "dhlecommercesolutions", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "DHLPacketInternational"}, {"carrier": "dhlecommercesolutions", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DHLParcelInternationalDirectPriority"}, {"carrier": "dhlecommercesolutions", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DHLParcelInternationalDirectStandard"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "DHL Express", "name": "dhlexpress", - "predefined_packages": [{"carrier": "dhlexpress", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "JumboDocument"}, - {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "JumboParcel"}, {"carrier": "dhlexpress", + "human_readable": null, "max_weight": null, "name": "DHLParcelInternationalDirect"}, + {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "DHLParcelInternationalStandard"}, + {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "DHLPacketInternational"}, + {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "DHLParcelInternationalDirectPriority"}, + {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "DHLParcelInternationalDirectStandard"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "DHL + Express", "name": "dhlexpress", "predefined_packages": [{"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Document"}, {"carrier": "dhlexpress", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "DHLFlyer"}, + null, "name": "JumboDocument"}, {"carrier": "dhlexpress", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "JumboParcel"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Domestic"}, {"carrier": "dhlexpress", "description": + null, "max_weight": null, "name": "Document"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ExpressDocument"}, {"carrier": "dhlexpress", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "DHLExpressEnvelope"}, - {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "JumboBox"}, {"carrier": "dhlexpress", "description": + "DHLFlyer"}, {"carrier": "dhlexpress", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Domestic"}, {"carrier": + "dhlexpress", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "ExpressDocument"}, {"carrier": "dhlexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "DHLExpressEnvelope"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "JumboJuniorDocument"}, {"carrier": "dhlexpress", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "JuniorJumboBox"}, + "JumboBox"}, {"carrier": "dhlexpress", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "JumboJuniorDocument"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "JumboJuniorParcel"}, {"carrier": "dhlexpress", + null, "max_weight": null, "name": "JuniorJumboBox"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "OtherDHLPackaging"}, {"carrier": "dhlexpress", "description": + null, "name": "JumboJuniorParcel"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Parcel"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "YourPackaging"}], "service_levels": - [{"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "BreakBulkEconomy"}, {"carrier": "dhlexpress", + "OtherDHLPackaging"}, {"carrier": "dhlexpress", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Parcel"}, {"carrier": + "dhlexpress", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "YourPackaging"}], "service_levels": [{"carrier": + "dhlexpress", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "BreakBulkEconomy"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "BreakBulkExpress"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": @@ -710,104 +883,133 @@ interactions: null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "PaketInternational"}, {"carrier": "dhlpaket", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Retoure"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "DHL SmartMail", "name": - "dhlsmartmail", "predefined_packages": [], "service_levels": [], "shipment_options": - [], "supported_features": []}, {"human_readable": "DPD", "name": "dpd", "predefined_packages": - [], "service_levels": [{"carrier": "dpd", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "DPDCLASSIC"}, {"carrier": + [], "supported_features": []}, {"human_readable": "DoorDash", "name": "doordash", + "predefined_packages": [], "service_levels": [{"carrier": "doordash", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "Standard"}], "shipment_options": [], "supported_features": [{"carrier": "doordash", + "description": null, "name": "labels", "supported": null}, {"carrier": "doordash", + "description": null, "name": "rating", "supported": true}, {"carrier": "doordash", + "description": null, "name": "refunds", "supported": null}]}, {"human_readable": + "DPD", "name": "dpd", "predefined_packages": [], "service_levels": [{"carrier": "dpd", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DPD8:30"}, {"carrier": "dpd", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "DPD10:00"}, {"carrier": + null, "name": "DPDCLASSIC"}, {"carrier": "dpd", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "DPD8:30"}, {"carrier": "dpd", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DPD12:00"}, {"carrier": "dpd", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "DPD18:00"}, {"carrier": + null, "name": "DPD10:00"}, {"carrier": "dpd", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "DPD12:00"}, {"carrier": "dpd", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DPDEXPRESS"}, {"carrier": "dpd", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "DPDPARCELLETTER"}, + null, "name": "DPD18:00"}, {"carrier": "dpd", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "DPDEXPRESS"}, {"carrier": + "dpd", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "DPDPARCELLETTER"}, {"carrier": "dpd", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "DPDPARCELLETTERPLUS"}, {"carrier": "dpd", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "DPDPARCELLETTERPLUS"}, {"carrier": "dpd", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DPDINTERNATIONALMAIL"}], "shipment_options": [], "supported_features": - []}, {"human_readable": "DPDUK", "name": "dpduk", "predefined_packages": [{"carrier": - "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Parcel"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Pallet"}, {"carrier": + null, "max_weight": null, "name": "DPDINTERNATIONALMAIL"}], "shipment_options": + [], "supported_features": []}, {"human_readable": "DPD NL", "name": "dpdnl", + "predefined_packages": [], "service_levels": [{"carrier": "dpdnl", "description": + null, "dimensions": [], "human_readable": "DPDNL Classic", "max_weight": null, + "name": "DPDNL_CLASSIC"}, {"carrier": "dpdnl", "description": null, "dimensions": + [], "human_readable": "Express 10", "max_weight": null, "name": "EXPRESS_10"}, + {"carrier": "dpdnl", "description": null, "dimensions": [], "human_readable": + "Express 12", "max_weight": null, "name": "EXPRESS_12"}, {"carrier": "dpdnl", + "description": null, "dimensions": [], "human_readable": "Express 18", "max_weight": + null, "name": "EXPRESS_18"}, {"carrier": "dpdnl", "description": null, "dimensions": + [], "human_readable": "International Express", "max_weight": null, "name": + "INTERNATIONAL_EXPRESS"}, {"carrier": "dpdnl", "description": null, "dimensions": + [], "human_readable": "DPDNL B2C Home", "max_weight": null, "name": "DPDNL_HOME"}, + {"carrier": "dpdnl", "description": null, "dimensions": [], "human_readable": + "DPDNL B2C Shop", "max_weight": null, "name": "DPDNL_TO_SHOP"}], "shipment_options": + [], "supported_features": [{"carrier": "dpdnl", "description": null, "name": + "commercial_invoices", "supported": false}, {"carrier": "dpdnl", "description": + null, "name": "labels", "supported": true}, {"carrier": "dpdnl", "description": + null, "name": "orders", "supported": false}, {"carrier": "dpdnl", "description": + null, "name": "pickups", "supported": false}, {"carrier": "dpdnl", "description": + null, "name": "rating", "supported": true}, {"carrier": "dpdnl", "description": + null, "name": "refunds", "supported": true}, {"carrier": "dpdnl", "description": + null, "name": "returns", "supported": false}, {"carrier": "dpdnl", "description": + null, "name": "scanforms", "supported": false}, {"carrier": "dpdnl", "description": + null, "name": "sort_codes", "supported": false}, {"carrier": "dpdnl", "description": + null, "name": "test_environment", "supported": true}]}, {"human_readable": + "DPD UK", "name": "dpduk", "predefined_packages": [{"carrier": "dpduk", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "Parcel"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Pallet"}, {"carrier": "dpduk", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "ExpressPak"}, {"carrier": "dpduk", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "FreightParcel"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ExpressPak"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "FreightParcel"}, - {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Freight"}], "service_levels": [{"carrier": - "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "AirExpressInternationalAir"}, {"carrier": "dpduk", "description": + null, "name": "Freight"}], "service_levels": [{"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "AirClassicInternationalAir"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "ParcelSunday"}, {"carrier": - "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "FreightParcelSunday"}, {"carrier": "dpduk", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "PalletSunday"}, {"carrier": "dpduk", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "PalletDpdClassic"}, {"carrier": - "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ExpresspakDpdClassic"}, {"carrier": "dpduk", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ExpresspakSunday"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "ParcelDpdClassic"}, + [], "human_readable": null, "max_weight": null, "name": "AirExpressInternationalAir"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ParcelDpdTwoDay"}, {"carrier": "dpduk", + null, "max_weight": null, "name": "ExpresspakDpd10:30"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ParcelDpdNextDay"}, {"carrier": "dpduk", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "ParcelDpd12"}, + null, "name": "ExpresspakDpd12:00"}, {"carrier": "dpduk", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ExpresspakDpdClassic"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ParcelDpd10"}, {"carrier": "dpduk", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ParcelReturnToShop"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "ParcelSaturday"}, - {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ParcelSaturday12"}, {"carrier": "dpduk", + null, "max_weight": null, "name": "ExpresspakDpdNextDay"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ParcelSaturday10"}, {"carrier": "dpduk", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "ParcelSunday12"}, + null, "name": "ExpresspakSaturday"}, {"carrier": "dpduk", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ExpresspakSaturday10:30"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "FreightParcelDpdClassic"}, {"carrier": + null, "max_weight": null, "name": "ExpresspakSaturday12:00"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "FreightParcelSunday12"}, {"carrier": "dpduk", "description": + null, "name": "ExpresspakSunday"}, {"carrier": "dpduk", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ExpresspakSunday12:00"}, + {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "FreightParcelDpd10:30"}, {"carrier": "dpduk", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "FreightParcelDpd12:00"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ExpresspakDpdNextDay"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "ExpresspakDpd12"}, + "FreightParcelDpdClassic"}, {"carrier": "dpduk", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "FreightParcelDpdNextDay"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ExpresspakDpd10"}, {"carrier": "dpduk", + null, "max_weight": null, "name": "FreightParcelDpdTwoDay"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ExpresspakSaturday"}, {"carrier": "dpduk", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "ExpresspakSaturday12"}, + null, "name": "FreightParcelSaturday"}, {"carrier": "dpduk", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "FreightParcelSaturday10:30"}, {"carrier": "dpduk", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "FreightParcelSaturday12:00"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ExpresspakSaturday10"}, {"carrier": "dpduk", + null, "max_weight": null, "name": "FreightParcelSunday"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ExpresspakSunday12"}, {"carrier": "dpduk", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "PalletSunday12"}, + null, "name": "FreightParcelSunday12:00"}, {"carrier": "dpduk", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "PalletDpd10:30"}, {"carrier": "dpduk", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "PalletDpd12:00"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "PalletDpdTwoDay"}, {"carrier": "dpduk", + null, "max_weight": null, "name": "PalletDpdClassic"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "PalletDpdNextDay"}, {"carrier": "dpduk", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "PalletDpd12"}, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "PalletDpdTwoDay"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "PalletDpd10"}, {"carrier": "dpduk", "description": + null, "max_weight": null, "name": "PalletSaturday"}, {"carrier": "dpduk", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "PalletSaturday10:30"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "PalletSaturday"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "PalletSaturday12"}, + "PalletSaturday12:00"}, {"carrier": "dpduk", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "PalletSunday"}, {"carrier": + "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "PalletSunday12:00"}, {"carrier": "dpduk", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ParcelDpd10:30"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "PalletSaturday10"}, {"carrier": "dpduk", + null, "max_weight": null, "name": "ParcelDpd12:00"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "FreightParcelDpdTwoDay"}, {"carrier": "dpduk", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "FreightParcelDpdNextDay"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "FreightParcelDpd12"}, + null, "name": "ParcelDpdClassic"}, {"carrier": "dpduk", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ParcelDpdNextDay"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "FreightParcelDpd10"}, {"carrier": "dpduk", + null, "max_weight": null, "name": "ParcelDpdTwoDay"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "FreightParcelSaturday"}, {"carrier": "dpduk", "description": + null, "name": "ParcelReturnToShop"}, {"carrier": "dpduk", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ParcelSaturday"}, + {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "ParcelSaturday10:30"}, {"carrier": "dpduk", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "ParcelSaturday12:00"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "FreightParcelSaturday12"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "FreightParcelSaturday10"}], + "ParcelSunday"}, {"carrier": "dpduk", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "ParcelSunday12:00"}], "shipment_options": [], "supported_features": []}, {"human_readable": "ePostGlobal", "name": "epostglobal", "predefined_packages": [], "service_levels": [{"carrier": "epostglobal", "description": null, "dimensions": [], "human_readable": null, @@ -839,75 +1041,143 @@ interactions: "PriorityParcelDeliveryConfirmationDDU"}, {"carrier": "epostglobal", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "ePacketService"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "Estafeta", "name": "estafeta", "predefined_packages": [{"carrier": "estafeta", + "EPostGlobalV2", "name": "epostglobalv2", "predefined_packages": [], "service_levels": + [{"carrier": "epostglobalv2", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "CourierService"}, {"carrier": "epostglobalv2", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ENVELOPE"}, {"carrier": "estafeta", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "PARCEL"}], "service_levels": - [{"carrier": "estafeta", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "NextDayBy930"}, {"carrier": "estafeta", + null, "name": "CourierServiceDutiesPaid"}, {"carrier": "epostglobalv2", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "DomesticPriorityParcel"}, {"carrier": "epostglobalv2", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "DomesticeDGE"}, + {"carrier": "epostglobalv2", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "EconomyParcel"}, {"carrier": "epostglobalv2", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "ExpeditedParcelWithDeliveryConfirmationDutiesPaid"}, {"carrier": + "epostglobalv2", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "ExpeditedWithDC"}, {"carrier": "epostglobalv2", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "FirstClassParcelsInternational"}, {"carrier": "epostglobalv2", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "NextDayBy1130"}, {"carrier": "estafeta", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "NextDay"}, - {"carrier": "estafeta", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Ground"}, {"carrier": "estafeta", "description": + null, "name": "IPA"}, {"carrier": "epostglobalv2", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "ISAL"}, {"carrier": + "epostglobalv2", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "PMEI"}, {"carrier": "epostglobalv2", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "PMEIDDP"}, {"carrier": "epostglobalv2", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "PMIPresortService"}, + {"carrier": "epostglobalv2", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "PMIServiceDutyPaid"}, {"carrier": "epostglobalv2", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "PriorityPacketDDU"}, {"carrier": "epostglobalv2", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "PriorityParcelNoDeliveryConfirmation"}, {"carrier": "epostglobalv2", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "TwoDay"}, {"carrier": "estafeta", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "LTL"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "Evri", "name": "evri", - "predefined_packages": [], "service_levels": [{"carrier": "evri", "description": + "PriorityParcelNoDeliveryConfirmationDutiesPaid"}, {"carrier": "epostglobalv2", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "PriorityParcelWithDeliveryConfirmation"}, {"carrier": "epostglobalv2", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "PriorityParcelWithDeliveryConfirmationDutiesPaid"}, {"carrier": + "epostglobalv2", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "ePacket"}, {"carrier": "epostglobalv2", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "ePacketDDP"}], "shipment_options": [], "supported_features": + [{"carrier": "epostglobalv2", "description": null, "name": "labels", "supported": + null}, {"carrier": "epostglobalv2", "description": null, "name": "rating", + "supported": true}, {"carrier": "epostglobalv2", "description": null, "name": + "refunds", "supported": null}]}, {"human_readable": "Estafeta", "name": "estafeta", + "predefined_packages": [{"carrier": "estafeta", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "ENVELOPE"}, {"carrier": + "estafeta", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "PARCEL"}], "service_levels": [{"carrier": "estafeta", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "11:30"}, {"carrier": "estafeta", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "12:30"}, {"carrier": + "estafeta", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "Dia Sig."}, {"carrier": "estafeta", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "2 Dias"}, {"carrier": "estafeta", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "Terrestre"}, {"carrier": + "estafeta", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "LTL"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "Evri", "name": "evri", "predefined_packages": [], + "service_levels": [{"carrier": "evri", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Courier2Home"}, {"carrier": + "evri", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "Courier2HomeNextDay"}, {"carrier": "evri", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "Shop2Home"}, + {"carrier": "evri", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Shop2HomeNextDay"}, {"carrier": "evri", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "Shop2Shop"}, {"carrier": "evri", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Shop2ShopNextDay"}, + {"carrier": "evri", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Courier2Shop"}, {"carrier": "evri", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Courier2Home"}, {"carrier": "evri", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "Courier2HomeNextDay"}, + "Courier2ShopNextDay"}, {"carrier": "evri", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "International Delivery"}, {"carrier": "evri", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Shop2Home"}, {"carrier": "evri", "description": + null, "max_weight": null, "name": "Commercial"}, {"carrier": "evri", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Shop2HomeNextDay"}, {"carrier": "evri", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Shop2Shop"}, {"carrier": + "DDP Courier"}, {"carrier": "evri", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "DDU Courier"}, {"carrier": "evri", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Shop2ShopNextDay"}], "shipment_options": [], "supported_features": - []}, {"human_readable": "Fastway", "name": "fastway", "predefined_packages": - [{"carrier": "fastway", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Parcel"}, {"carrier": "fastway", "description": + null, "name": "DDU Shop"}, {"carrier": "evri", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Postal"}], "shipment_options": + [], "supported_features": []}, {"human_readable": "Fastway", "name": "fastway", + "predefined_packages": [{"carrier": "fastway", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Parcel"}, {"carrier": + "fastway", "description": "(Satchel)", "dimensions": [], "human_readable": + null, "max_weight": null, "name": "A2"}, {"carrier": "fastway", "description": "(Satchel)", "dimensions": [], "human_readable": null, "max_weight": null, - "name": "A2"}, {"carrier": "fastway", "description": "(Satchel)", "dimensions": - [], "human_readable": null, "max_weight": null, "name": "A3"}, {"carrier": - "fastway", "description": "(Satchel, not available in Australia)", "dimensions": - [], "human_readable": null, "max_weight": null, "name": "A4"}, {"carrier": - "fastway", "description": "(Satchel, not available in South Africa)", "dimensions": - [], "human_readable": null, "max_weight": null, "name": "A5"}, {"carrier": + "name": "A3"}, {"carrier": "fastway", "description": "(Satchel, not available + in Australia)", "dimensions": [], "human_readable": null, "max_weight": null, + "name": "A4"}, {"carrier": "fastway", "description": "(Satchel, not available + in South Africa)", "dimensions": [], "human_readable": null, "max_weight": + null, "name": "A5"}, {"carrier": "fastway", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "BOXSML"}, {"carrier": "fastway", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "BOXSML"}, {"carrier": "fastway", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "BOXMED"}, {"carrier": "fastway", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "BOXLRG"}], "service_levels": [{"carrier": - "fastway", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "Parcel"}, {"carrier": "fastway", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Satchel"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "FedEx", "name": "fedex", "predefined_packages": [{"carrier": "fedex", "description": - "Up to approximately 60 pages", "dimensions": ["9.5in x 12.5in"], "human_readable": - null, "max_weight": 8.0, "name": "FedExEnvelope"}, {"carrier": "fedex", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "FedExBox"}, {"carrier": "fedex", "description": null, "dimensions": ["12in - x 15.5in"], "human_readable": null, "max_weight": 88.0, "name": "FedExPak"}, - {"carrier": "fedex", "description": "Triangular box for plans, posters, fabric - rolls, charts and blueprints", "dimensions": ["38in x 6in x 6in x 6in"], "human_readable": - null, "max_weight": 320.0, "name": "FedExTube"}, {"carrier": "fedex", "description": - "To qualify for the flat rate, weight cannot exceed 10 kg", "dimensions": - ["15.81in x 12.94in x 10.19in"], "human_readable": null, "max_weight": 352.0, - "name": "FedEx10kgBox"}, {"carrier": "fedex", "description": "To qualify for - the flat rate, weight cannot exceed 25 kg.", "dimensions": ["21.56in x 16.56in - x 13.19in"], "human_readable": null, "max_weight": 880.0, "name": "FedEx25kgBox"}, - {"carrier": "fedex", "description": null, "dimensions": ["12.25in x 10.9in - x 1.5in", "8.75in x 2.63in x 11.25in"], "human_readable": null, "max_weight": - 320.0, "name": "FedExSmallBox"}, {"carrier": "fedex", "description": null, - "dimensions": ["13.25in x 11.5in x 2.38in", "8.75in x 4.38in x 11.25in"], - "human_readable": null, "max_weight": 320.0, "name": "FedExMediumBox"}, {"carrier": - "fedex", "description": null, "dimensions": ["17.88in x 12.38in x 3in", "8.75in - x 7.75in x 11.25in"], "human_readable": null, "max_weight": 320.0, "name": - "FedExLargeBox"}, {"carrier": "fedex", "description": null, "dimensions": + "max_weight": null, "name": "BOXMED"}, {"carrier": "fastway", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "BOXLRG"}], "service_levels": [{"carrier": "fastway", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "Parcel"}, + {"carrier": "fastway", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Satchel"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "FedEx", "name": "fedex", "predefined_packages": [{"carrier": + "fedex", "description": "Up to approximately 60 pages", "dimensions": ["9.5in + x 12.5in"], "human_readable": null, "max_weight": 160.0, "name": "FedExEnvelope"}, + {"carrier": "fedex", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "FedExBox"}, {"carrier": "fedex", "description": + null, "dimensions": ["12in x 15.5in"], "human_readable": null, "max_weight": + 800.0, "name": "FedExPak"}, {"carrier": "fedex", "description": "Triangular + box for plans, posters, fabric rolls, charts and blueprints", "dimensions": + ["38in x 6in x 6in x 6in"], "human_readable": null, "max_weight": 800.0, "name": + "FedExTube"}, {"carrier": "fedex", "description": "To qualify for the flat + rate, weight cannot exceed 10 kg", "dimensions": ["15.81in x 12.94in x 10.19in"], + "human_readable": null, "max_weight": 352.0, "name": "FedEx10kgBox"}, {"carrier": + "fedex", "description": "To qualify for the flat rate, weight cannot exceed + 25 kg.", "dimensions": ["21.56in x 16.56in x 13.19in"], "human_readable": + null, "max_weight": 880.0, "name": "FedEx25kgBox"}, {"carrier": "fedex", "description": + "Maximum weight allowed is based on pricing option: 50 lbs (800 oz) for domestic + Express One Rate shipments, 20 lbs (320 oz) for domestic weight-based Express + shipments, 40 lbs (640 oz) for international weight-based Express shipments.", + "dimensions": ["12.25in x 10.9in x 1.5in", "8.75in x 2.63in x 11.25in"], "human_readable": + null, "max_weight": 800.0, "name": "FedExSmallBox"}, {"carrier": "fedex", + "description": "Maximum weight allowed is based on pricing option: 50 lbs + (800 oz) for domestic Express One Rate shipments, 20 lbs (320 oz) for domestic + weight-based Express shipments, 40 lbs (640 oz) for international weight-based + Express shipments.", "dimensions": ["13.25in x 11.5in x 2.38in", "8.75in x + 4.38in x 11.25in"], "human_readable": null, "max_weight": 800.0, "name": "FedExMediumBox"}, + {"carrier": "fedex", "description": "Maximum weight allowed is based on pricing + option: 50 lbs (800 oz) for domestic Express One Rate shipments, 20 lbs (320 + oz) for domestic weight-based Express shipments, 40 lbs (640 oz) for international + weight-based Express shipments.", "dimensions": ["17.88in x 12.38in x 3in", + "8.75in x 7.75in x 11.25in"], "human_readable": null, "max_weight": 800.0, + "name": "FedExLargeBox"}, {"carrier": "fedex", "description": "Maximum weight + allowed is based on pricing option: 50 lbs (800 oz) for domestic Express One + Rate shipments, 20 lbs (320 oz) for domestic weight-based Express shipments, + 40 lbs (640 oz) for international weight-based Express shipments.", "dimensions": ["11.88in x 10.75in x 11in", "15.25in x 14.13in x 6in"], "human_readable": - null, "max_weight": 320.0, "name": "FedExExtraLargeBox"}], "service_levels": + null, "max_weight": 800.0, "name": "FedExExtraLargeBox"}], "service_levels": [{"carrier": "fedex", "description": "2 business days by 4:30pm, Saturday delivery", "dimensions": null, "human_readable": "FedEx 2 Day", "max_weight": null, "name": "FEDEX_2_DAY"}, {"carrier": "fedex", "description": "2 business @@ -935,107 +1205,164 @@ interactions: the next business day, Saturday delivery", "dimensions": null, "human_readable": "FedEx Priority Overnight", "max_weight": null, "name": "PRIORITY_OVERNIGHT"}, {"carrier": "fedex", "description": "2-7 business days; Sunday Delivery to - select markets", "dimensions": null, "human_readable": "FedEx Smart Post", - "max_weight": null, "name": "SMART_POST"}, {"carrier": "fedex", "description": - "By 4:30pm the next business day", "dimensions": null, "human_readable": "FedEx - Standard Overnight", "max_weight": null, "name": "STANDARD_OVERNIGHT"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "FedEx Cross Border", "name": - "fedexcrossborder", "predefined_packages": [], "service_levels": [{"carrier": - "fedexcrossborder", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "CBEC"}, {"carrier": "fedexcrossborder", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "CBECL"}, {"carrier": "fedexcrossborder", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "CBECP"}], + select markets", "dimensions": null, "human_readable": "FedEx Ground Economy + (formerly FedEx SmartPost)", "max_weight": null, "name": "SMART_POST"}, {"carrier": + "fedex", "description": "By 4:30pm the next business day", "dimensions": null, + "human_readable": "FedEx Standard Overnight", "max_weight": null, "name": + "STANDARD_OVERNIGHT"}], "shipment_options": [], "supported_features": []}, + {"human_readable": "FedEx Cross Border", "name": "fedexcrossborder", "predefined_packages": + [], "service_levels": [{"carrier": "fedexcrossborder", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "CBEC"}, + {"carrier": "fedexcrossborder", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "CBECL"}, {"carrier": "fedexcrossborder", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "CBECP"}], "shipment_options": [], "supported_features": []}, + {"human_readable": "FedEx Ground Economy", "name": "fedexgroundeconomy", "predefined_packages": + [], "service_levels": [{"carrier": "fedexgroundeconomy", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "SMART_POST"}], "shipment_options": [], "supported_features": []}, {"human_readable": "FedEx - Mailview", "name": "fedexmailview", "predefined_packages": [], "service_levels": - [], "shipment_options": [], "supported_features": []}, {"human_readable": - "FedEx SmartPost", "name": "fedexsmartpost", "predefined_packages": [], "service_levels": + SmartPost", "name": "fedexsmartpost", "predefined_packages": [], "service_levels": [{"carrier": "fedexsmartpost", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "SMART_POST"}], "shipment_options": [], - "supported_features": []}, {"human_readable": "FirstMile", "name": "firstmile", - "predefined_packages": [], "service_levels": [{"carrier": "firstmile", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "XParcelGround"}, {"carrier": "firstmile", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "XParcelExpedited"}, - {"carrier": "firstmile", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "XParcelExpeditedPlus"}, {"carrier": "firstmile", + "supported_features": []}, {"human_readable": "First Choice", "name": "firstchoice", + "predefined_packages": [], "service_levels": [{"carrier": "firstchoice", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "ST"}], "shipment_options": [], "supported_features": [{"carrier": "firstchoice", + "description": null, "name": "labels", "supported": null}]}, {"human_readable": + "First Mile", "name": "firstmile", "predefined_packages": [], "service_levels": + [{"carrier": "firstmile", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "XParcelPriority"}, {"carrier": "firstmile", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "XParcelPriority"}, {"carrier": "firstmile", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "XParcelReturns"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "GSO", "name": "gso", "predefined_packages": [], "service_levels": [{"carrier": - "gso", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "EarlyPriorityOvernight"}, {"carrier": "gso", "description": + null, "name": "XParcelExpedited"}, {"carrier": "firstmile", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "PriorityOvernight"}, {"carrier": "gso", "description": null, "dimensions": + "XParcelReturns"}, {"carrier": "firstmile", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "XParcelGround"}, + {"carrier": "firstmile", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "XParcelExpeditedPlus"}], "shipment_options": + [], "supported_features": [{"carrier": "firstmile", "description": null, "name": + "labels", "supported": true}, {"carrier": "firstmile", "description": null, + "name": "orders", "supported": false}, {"carrier": "firstmile", "description": + null, "name": "pickups", "supported": false}, {"carrier": "firstmile", "description": + null, "name": "rating", "supported": true}, {"carrier": "firstmile", "description": + null, "name": "refunds", "supported": true}, {"carrier": "firstmile", "description": + null, "name": "returns", "supported": true}, {"carrier": "firstmile", "description": + null, "name": "scanforms", "supported": false}, {"carrier": "firstmile", "description": + null, "name": "test_environment", "supported": true}]}, {"human_readable": + "Flexport", "name": "flexport", "predefined_packages": [], "service_levels": + [{"carrier": "flexport", "description": null, "dimensions": [], "human_readable": + "Standard", "max_weight": null, "name": "Standard"}, {"carrier": "flexport", + "description": null, "dimensions": [], "human_readable": "Expedited", "max_weight": + null, "name": "Expedited"}], "shipment_options": [], "supported_features": + [{"carrier": "flexport", "description": null, "name": "bill_on_delivery", + "supported": false}, {"carrier": "flexport", "description": null, "name": + "bill_on_label_purchase", "supported": false}, {"carrier": "flexport", "description": + null, "name": "bill_on_manifest", "supported": false}, {"carrier": "flexport", + "description": null, "name": "bill_on_scan", "supported": true}, {"carrier": + "flexport", "description": null, "name": "commercial_invoices", "supported": + false}, {"carrier": "flexport", "description": null, "name": "delivers_to_po_box", + "supported": false}, {"carrier": "flexport", "description": null, "name": + "labels", "supported": true}, {"carrier": "flexport", "description": null, + "name": "orders", "supported": false}, {"carrier": "flexport", "description": + null, "name": "pickups", "supported": false}, {"carrier": "flexport", "description": + null, "name": "rating", "supported": true}, {"carrier": "flexport", "description": + null, "name": "refunds", "supported": false}, {"carrier": "flexport", "description": + null, "name": "returns", "supported": false}, {"carrier": "flexport", "description": + null, "name": "scanforms", "supported": false}, {"carrier": "flexport", "description": + null, "name": "sort_codes", "supported": false}, {"carrier": "flexport", "description": + null, "name": "test_environment", "supported": false}]}, {"human_readable": + "Gio", "name": "gio", "predefined_packages": [], "service_levels": [{"carrier": + "gio", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "scheduled"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "GLS", "name": "gls", "predefined_packages": [], "service_levels": + [{"carrier": "gls", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "CaliforniaParcelService"}, {"carrier": + "gls", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "EarlyPriorityOvernight"}, {"carrier": "gls", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "EarlySaturdayService"}, {"carrier": "gls", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Ground"}, {"carrier": + "gls", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "Overnight"}, {"carrier": "gls", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "PriorityOvernight"}, + {"carrier": "gls", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "SaturdayDeliveryService"}], "shipment_options": + [], "supported_features": []}, {"human_readable": "GSO", "name": "gso", "predefined_packages": + [], "service_levels": [{"carrier": "gso", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "CaliforniaParcelService"}, {"carrier": "gso", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "SaturdayDeliveryService"}, {"carrier": - "gso", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "max_weight": null, "name": "EarlyPriorityOvernight"}, {"carrier": "gso", + "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "EarlySaturdayService"}, {"carrier": "gso", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Ground"}, {"carrier": "gso", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Overnight"}], "shipment_options": [], "supported_features": - []}, {"human_readable": "Hailify", "name": "hailify", "predefined_packages": - [], "service_levels": [{"carrier": "hailify", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Xpress"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "Interlink Express", "name": - "interlinkexpress", "predefined_packages": [{"carrier": "interlinkexpress", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Parcel"}, {"carrier": "interlinkexpress", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "Pallet"}, + null, "max_weight": null, "name": "Overnight"}, {"carrier": "gso", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "PriorityOvernight"}, {"carrier": "gso", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "SaturdayDeliveryService"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "Hailify", + "name": "hailify", "predefined_packages": [], "service_levels": [{"carrier": + "hailify", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "Xpress"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "Henry", "name": "henry", "predefined_packages": [], + "service_levels": [{"carrier": "henry", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Distribution"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "Interlink + Express", "name": "interlinkexpress", "predefined_packages": [{"carrier": + "interlinkexpress", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Parcel"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "Pallet"}, {"carrier": "interlinkexpress", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ExpressPak"}, {"carrier": "interlinkexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ExpressPak"}, {"carrier": "interlinkexpress", + null, "max_weight": null, "name": "FreightParcel"}, {"carrier": "interlinkexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "FreightParcel"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Freight"}], "service_levels": [{"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkAirClassicInternationalAir"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkAirExpressInternationalAir"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak1By10:30"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak1By12"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak1NextDay"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak1Saturday"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak1SaturdayBy10:30"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak1SaturdayBy12"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak1Sunday"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak1SundayBy12"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5By10"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5By10:30"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5By12"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5NextDay"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5Saturday"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5SaturdayBy10"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5SaturdayBy10:30"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5SaturdayBy12"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5Sunday"}, {"carrier": "interlinkexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkExpresspak5SundayBy12"}, {"carrier": "interlinkexpress", "description": + null, "name": "Freight"}], "service_levels": [{"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkAirClassicInternationalAir"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkAirExpressInternationalAir"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak1By10:30"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak1By12"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak1NextDay"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak1Saturday"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak1SaturdayBy10:30"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak1SaturdayBy12"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak1Sunday"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak1SundayBy12"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5By10"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5By10:30"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5By12"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5NextDay"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5Saturday"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5SaturdayBy10"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5SaturdayBy10:30"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5SaturdayBy12"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5Sunday"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkExpresspak5SundayBy12"}, {"carrier": "interlinkexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "InterlinkFreightBy10"}, {"carrier": "interlinkexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InterlinkFreightBy10"}, {"carrier": "interlinkexpress", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "InterlinkFreightBy12"}, + "InterlinkFreightBy12"}, {"carrier": "interlinkexpress", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "InterlinkFreightNextDay"}, {"carrier": "interlinkexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "InterlinkFreightNextDay"}, {"carrier": - "interlinkexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "InterlinkFreightSaturday"}, {"carrier": "interlinkexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "InterlinkFreightSaturdayBy10"}, {"carrier": @@ -1075,9 +1402,20 @@ interactions: null, "max_weight": null, "name": "InterlinkParcelTwoDay"}, {"carrier": "interlinkexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "InterlinkPickupParcelDpdEuropeByRoad"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "JP Post", "name": "jppost", - "predefined_packages": [], "service_levels": [], "shipment_options": [], "supported_features": - []}, {"human_readable": "Kuroneko Yamato", "name": "kuronekoyamato", "predefined_packages": + [], "supported_features": []}, {"human_readable": "Jet", "name": "jet", "predefined_packages": + [], "service_levels": [{"carrier": "jet", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Distribution"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "Jitsu", + "name": "jitsu", "predefined_packages": [], "service_levels": [{"carrier": + "jitsu", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "AxleHireDelivery"}], "shipment_options": [], "supported_features": + [{"carrier": "jitsu", "description": null, "name": "labels", "supported": + null}, {"carrier": "jitsu", "description": null, "name": "pickups", "supported": + null}, {"carrier": "jitsu", "description": null, "name": "rating", "supported": + true}, {"carrier": "jitsu", "description": null, "name": "scanforms", "supported": + null}]}, {"human_readable": "JP Post", "name": "jppost", "predefined_packages": + [], "service_levels": [], "shipment_options": [], "supported_features": []}, + {"human_readable": "Kuroneko Yamato", "name": "kuronekoyamato", "predefined_packages": [], "service_levels": [], "shipment_options": [], "supported_features": []}, {"human_readable": "La Poste", "name": "laposte", "predefined_packages": [], "service_levels": [], "shipment_options": [], "supported_features": []}, {"human_readable": @@ -1099,205 +1437,259 @@ interactions: null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "LoomisExpress1200"}, {"carrier": "loomisexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "LoomisExpress900"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "LSO", - "name": "lso", "predefined_packages": [], "service_levels": [{"carrier": "lso", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "GroundEarly"}, {"carrier": "lso", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "GroundBasic"}, {"carrier": - "lso", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "PriorityBasic"}, {"carrier": "lso", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "PriorityEarly"}, - {"carrier": "lso", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "PrioritySaturday"}, {"carrier": "lso", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Priority2ndDay"}, {"carrier": "lso", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "SameDay"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "Maergo", "name": "maergo", - "predefined_packages": [], "service_levels": [{"carrier": "maergo", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Standard"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "Newgistics", "name": "newgistics", "predefined_packages": [], "service_levels": - [{"carrier": "newgistics", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ParcelSelect"}, {"carrier": "newgistics", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ParcelSelectLightweight"}, {"carrier": "newgistics", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Ground"}, {"carrier": "newgistics", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "Express"}, {"carrier": - "newgistics", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "FirstClassMail"}, {"carrier": "newgistics", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "PriorityMail"}, {"carrier": "newgistics", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "BoundPrintedMatter"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "Ontrac", - "name": "ontrac", "predefined_packages": [{"carrier": "ontrac", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Letter"}], "service_levels": [{"carrier": "ontrac", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "Sunrise"}, - {"carrier": "ontrac", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Gold"}, {"carrier": "ontrac", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "OnTracGround"}, {"carrier": "ontrac", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "SameDay"}, {"carrier": - "ontrac", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "PalletizedFreight"}], "shipment_options": [], "supported_features": + "shipment_options": [], "supported_features": [{"carrier": "loomisexpress", + "description": null, "name": "labels", "supported": null}, {"carrier": "loomisexpress", + "description": null, "name": "pickups", "supported": null}, {"carrier": "loomisexpress", + "description": null, "name": "rating", "supported": true}, {"carrier": "loomisexpress", + "description": null, "name": "scanforms", "supported": null}, {"carrier": + "loomisexpress", "description": null, "name": "test_environment", "supported": + null}]}, {"human_readable": "LSO", "name": "lso", "predefined_packages": [], + "service_levels": [{"carrier": "lso", "description": null, "dimensions": null, + "human_readable": "Early Next Day by 8:30 a.m.", "max_weight": null, "name": + "PriorityEarly"}, {"carrier": "lso", "description": null, "dimensions": null, + "human_readable": "Priority Next Day by 10:30 a.m.", "max_weight": null, "name": + "PriorityBasic"}, {"carrier": "lso", "description": null, "dimensions": null, + "human_readable": "Priority 2nd Business Day", "max_weight": null, "name": + "Priority2ndDay"}, {"carrier": "lso", "description": null, "dimensions": null, + "human_readable": "Economy Next Day by 3 p.m.", "max_weight": null, "name": + "GroundEarly"}, {"carrier": "lso", "description": null, "dimensions": null, + "human_readable": "Ground Basic in 1-3 business days", "max_weight": null, + "name": "GroundBasic"}, {"carrier": "lso", "description": null, "dimensions": + null, "human_readable": "eCommerce", "max_weight": null, "name": "ECommerce"}], + "shipment_options": [{"carrier": "lso", "deprecated": false, "description": + null, "human_readable": "Delivery Confirmation", "name": "delivery_confirmation", + "type": "string"}, {"carrier": "lso", "deprecated": false, "description": + null, "human_readable": "Saturday Delivery", "name": "saturday_delivery", + "type": "boolean"}, {"carrier": "lso", "deprecated": true, "description": + null, "human_readable": "Date Advance", "name": "date_advance", "type": "integer"}, + {"carrier": "lso", "deprecated": true, "description": null, "human_readable": + "Declared Value", "name": "declared_value", "type": "float"}, {"carrier": + "lso", "deprecated": false, "description": null, "human_readable": "Label + Format", "name": "label_format", "type": "string"}, {"carrier": "lso", "deprecated": + false, "description": null, "human_readable": "Label Size", "name": "label_size", + "type": "string"}, {"carrier": "lso", "deprecated": true, "description": null, + "human_readable": "Print Custom 1", "name": "print_custom_1", "type": "string"}, + {"carrier": "lso", "deprecated": true, "description": null, "human_readable": + "Print Custom 2", "name": "print_custom_2", "type": "string"}, {"carrier": + "lso", "deprecated": true, "description": null, "human_readable": "Print Custom + 3", "name": "print_custom_3", "type": "string"}], "supported_features": [{"carrier": + "lso", "description": null, "name": "bill_on_delivery", "supported": false}, + {"carrier": "lso", "description": null, "name": "bill_on_label_purchase", + "supported": false}, {"carrier": "lso", "description": null, "name": "bill_on_manifest", + "supported": false}, {"carrier": "lso", "description": null, "name": "bill_on_scan", + "supported": true}, {"carrier": "lso", "description": null, "name": "commercial_invoices", + "supported": false}, {"carrier": "lso", "description": null, "name": "delivers_to_po_box", + "supported": false}, {"carrier": "lso", "description": null, "name": "labels", + "supported": true}, {"carrier": "lso", "description": null, "name": "orders", + "supported": false}, {"carrier": "lso", "description": null, "name": "pickups", + "supported": true}, {"carrier": "lso", "description": null, "name": "rating", + "supported": true}, {"carrier": "lso", "description": null, "name": "refunds", + "supported": false}, {"carrier": "lso", "description": null, "name": "returns", + "supported": false}, {"carrier": "lso", "description": null, "name": "scanforms", + "supported": false}, {"carrier": "lso", "description": null, "name": "sort_codes", + "supported": false}, {"carrier": "lso", "description": null, "name": "test_environment", + "supported": true}]}, {"human_readable": "Maersk", "name": "maersk", "predefined_packages": + [], "service_levels": [{"carrier": "maersk", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Maersk-3-Day"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "OnTracV3", + "name": "ontracv3", "predefined_packages": [{"carrier": "ontracv3", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "Letter"}], "service_levels": [{"carrier": "ontracv3", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "GRND"}, + {"carrier": "ontracv3", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Next_Day"}], "shipment_options": [], "supported_features": []}, {"human_readable": "Optima", "name": "optima", "predefined_packages": [], "service_levels": [{"carrier": "optima", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "NxtDay"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "OSM Worldwide", "name": - "osmworldwide", "predefined_packages": [{"carrier": "osmworldwide", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "parcel"}, {"carrier": "osmworldwide", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "irregularparcel"}, + ["Maximum length: 48in", "Maximum width: 32in", "Maximum height: 32in"], "human_readable": + null, "max_weight": 800.0, "name": "NxtDay"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "OSM Worldwide", "name": "osmworldwide", "predefined_packages": + [{"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "parcel"}, {"carrier": "osmworldwide", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "irregularparcel"}, {"carrier": "osmworldwide", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "softpack"}], "service_levels": + [{"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": + "Priority", "max_weight": null, "name": "Priority"}, {"carrier": "osmworldwide", + "description": null, "dimensions": [], "human_readable": "BPM", "max_weight": + null, "name": "BPM"}, {"carrier": "osmworldwide", "description": null, "dimensions": + [], "human_readable": "Parcel Select", "max_weight": null, "name": "ParcelSelect"}, {"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "softpack"}], "service_levels": [{"carrier": - "osmworldwide", "description": null, "dimensions": [], "human_readable": "First", - "max_weight": null, "name": "First"}, {"carrier": "osmworldwide", "description": - null, "dimensions": [], "human_readable": "Parcel Select Lightweight", "max_weight": - null, "name": "ParcelSelectLightweight"}, {"carrier": "osmworldwide", "description": - null, "dimensions": [], "human_readable": "Priority", "max_weight": null, - "name": "Priority"}, {"carrier": "osmworldwide", "description": null, "dimensions": - [], "human_readable": "BPM", "max_weight": null, "name": "BPM"}, {"carrier": + "Media Mail", "max_weight": null, "name": "MediaMail"}, {"carrier": "osmworldwide", + "description": null, "dimensions": [], "human_readable": "Marketing Parcel", + "max_weight": null, "name": "MarketingParcel"}, {"carrier": "osmworldwide", + "description": null, "dimensions": [], "human_readable": "Marketing Parcel + Tracked", "max_weight": null, "name": "MarketingParcelTracked"}, {"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": "Parcel - Select", "max_weight": null, "name": "ParcelSelect"}, {"carrier": "osmworldwide", - "description": null, "dimensions": [], "human_readable": "Media Mail", "max_weight": - null, "name": "MediaMail"}, {"carrier": "osmworldwide", "description": null, - "dimensions": [], "human_readable": "Marketing Parcel", "max_weight": null, - "name": "MarketingParcel"}, {"carrier": "osmworldwide", "description": null, - "dimensions": [], "human_readable": "Marketing Parcel Tracked", "max_weight": - null, "name": "MarketingParcelTracked"}], "shipment_options": [], "supported_features": - [{"carrier": "osmworldwide", "description": null, "name": "labels", "supported": - true}, {"carrier": "osmworldwide", "description": null, "name": "orders", - "supported": false}, {"carrier": "osmworldwide", "description": null, "name": - "pickups", "supported": false}, {"carrier": "osmworldwide", "description": - null, "name": "refunds", "supported": false}, {"carrier": "osmworldwide", + Select Hazardous Material", "max_weight": null, "name": "ParcelSelectHazardousMaterial"}, + {"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": + "USPS Ground Advantage", "max_weight": null, "name": "USPSGroundAdvantage"}, + {"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": + "USPS Ground Advantage Lightweight", "max_weight": null, "name": "USPSGroundAdvantageLightweight"}, + {"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": + "USPS Ground Advantage Hazmat", "max_weight": null, "name": "USPSGroundAdvantageHazmat"}, + {"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": + "USPS Ground Advantage Hazmat Signature", "max_weight": null, "name": "USPSGroundAdvantageHazmatSignature"}, + {"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": + "USPS Ground Advantage Lightweight Hazmat", "max_weight": null, "name": "USPSGroundAdvantageLightweightHazmat"}, + {"carrier": "osmworldwide", "description": null, "dimensions": [], "human_readable": + "USPS Ground Advantage Lightweight Hazmat Signature", "max_weight": null, + "name": "USPSGroundAdvantageLightweightHazmatSignature"}, {"carrier": "osmworldwide", + "description": null, "dimensions": [], "human_readable": "Parcel Select Hazmat + Signature", "max_weight": null, "name": "ParcelSelectHazmatSignature"}], "shipment_options": + [], "supported_features": [{"carrier": "osmworldwide", "description": null, + "name": "labels", "supported": true}, {"carrier": "osmworldwide", "description": + null, "name": "orders", "supported": false}, {"carrier": "osmworldwide", "description": + null, "name": "pickups", "supported": false}, {"carrier": "osmworldwide", + "description": null, "name": "rating", "supported": true}, {"carrier": "osmworldwide", + "description": null, "name": "refunds", "supported": false}, {"carrier": "osmworldwide", "description": null, "name": "returns", "supported": false}, {"carrier": "osmworldwide", "description": "Manifesting", "name": "scanforms", "supported": true}, {"carrier": - "osmworldwide", "description": null, "name": "rating", "supported": false}, - {"carrier": "osmworldwide", "description": null, "name": "tracking", "supported": - false}, {"carrier": "osmworldwide", "description": null, "name": "sort_codes", + "osmworldwide", "description": null, "name": "sort_codes", "supported": true}]}, + {"human_readable": "Pandion", "name": "pandion", "predefined_packages": [], + "service_levels": [{"carrier": "pandion", "description": null, "dimensions": + [], "human_readable": "Pandion Express", "max_weight": null, "name": "Pandion + Express"}], "shipment_options": [], "supported_features": [{"carrier": "pandion", + "description": null, "name": "bill_on_delivery", "supported": false}, {"carrier": + "pandion", "description": null, "name": "bill_on_label_purchase", "supported": + false}, {"carrier": "pandion", "description": null, "name": "bill_on_manifest", + "supported": true}, {"carrier": "pandion", "description": null, "name": "bill_on_scan", + "supported": true}, {"carrier": "pandion", "description": null, "name": "commercial_invoices", + "supported": false}, {"carrier": "pandion", "description": null, "name": "delivers_to_po_box", + "supported": false}, {"carrier": "pandion", "description": null, "name": "labels", + "supported": true}, {"carrier": "pandion", "description": null, "name": "orders", + "supported": false}, {"carrier": "pandion", "description": null, "name": "pickups", + "supported": false}, {"carrier": "pandion", "description": null, "name": "rating", + "supported": true}, {"carrier": "pandion", "description": null, "name": "refunds", + "supported": false}, {"carrier": "pandion", "description": null, "name": "returns", + "supported": true}, {"carrier": "pandion", "description": null, "name": "scanforms", + "supported": true}, {"carrier": "pandion", "description": null, "name": "sort_codes", + "supported": false}, {"carrier": "pandion", "description": null, "name": "test_environment", "supported": true}]}, {"human_readable": "Parcelforce", "name": "parcelforce", "predefined_packages": [], "service_levels": [{"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Express9"}, {"carrier": "parcelforce", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Express9Secure"}, + "europrioritybusiness"}, {"carrier": "parcelforce", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "europriorityhome"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Express9CourierPack"}, {"carrier": "parcelforce", + null, "max_weight": null, "name": "express10"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Express10"}, {"carrier": "parcelforce", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "Express10Secure"}, - {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Express10Exchange"}, {"carrier": "parcelforce", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Express10SecureExchange"}, {"carrier": "parcelforce", "description": + null, "name": "express10CourierPack"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Express10CourierPack"}, {"carrier": "parcelforce", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "ExpressAM"}, {"carrier": + "express10Exchange"}, {"carrier": "parcelforce", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "express10Secure"}, + {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "express10SecureExchange"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "ExpressAMSecure"}, {"carrier": "parcelforce", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ExpressAMExchange"}, {"carrier": "parcelforce", "description": + "max_weight": null, "name": "express24"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ExpressAMSecureExchange"}, {"carrier": "parcelforce", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "ExpressAMCourierPack"}, + "express24CourierPack"}, {"carrier": "parcelforce", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "express24Exchange"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ExpressPM"}, {"carrier": "parcelforce", + null, "max_weight": null, "name": "express24large"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ExpressPMSecure"}, {"carrier": "parcelforce", "description": + null, "name": "express24Secure"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Express24"}, {"carrier": "parcelforce", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Express24Large"}, + "express24SecureExchange"}, {"carrier": "parcelforce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "express48"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Express24Secure"}, {"carrier": "parcelforce", + null, "max_weight": null, "name": "express48large"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Express24Exchange"}, {"carrier": "parcelforce", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Express24SecureExchange"}, {"carrier": "parcelforce", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "Express24CourierPack"}, + null, "name": "express9"}, {"carrier": "parcelforce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "express9CourierPack"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Express48"}, {"carrier": "parcelforce", + null, "max_weight": null, "name": "express9Secure"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Express48Large"}, {"carrier": "parcelforce", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ParcelRiderPlus"}, {"carrier": "parcelforce", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "GlobalBulkDirect"}, + null, "name": "expressAM"}, {"carrier": "parcelforce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "expressAMCourierPack"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "GlobalExpress"}, {"carrier": "parcelforce", + null, "max_weight": null, "name": "expressAMExchange"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "GlobalExpressEnvelopeDelivery"}, {"carrier": "parcelforce", + null, "name": "expressAMSecure"}, {"carrier": "parcelforce", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "expressAMSecureExchange"}, {"carrier": "parcelforce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "expressPM"}, + {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "expressPMSecure"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "GlobalExpressPackDelivery"}, {"carrier": "parcelforce", "description": + null, "name": "globalBulkDirect"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "GlobalValue"}, {"carrier": "parcelforce", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "GlobalPriority"}, + "globalexpress"}, {"carrier": "parcelforce", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "globalexpressEnvelopeDelivery"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "GlobalPriorityReturns"}, {"carrier": "parcelforce", + null, "max_weight": null, "name": "globalexpressPackDelivery"}, {"carrier": + "parcelforce", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "globalpriority"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "EuroPriorityHome"}, {"carrier": "parcelforce", "description": + null, "name": "globalpriorityReturns"}, {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "EuroPriorityBusiness"}, {"carrier": "parcelforce", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "IrelandExpress"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "PARCLL", - "name": "parcll", "predefined_packages": [], "service_levels": [{"carrier": + "globalvalue"}, {"carrier": "parcelforce", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "irelandexpress"}, + {"carrier": "parcelforce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "ParcelRiderPlus"}], "shipment_options": + [], "supported_features": []}, {"human_readable": "PARCLL", "name": "parcll", + "predefined_packages": [], "service_levels": [{"carrier": "parcll", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "CADOECOEA (CA Domestic Economy East)"}, {"carrier": "parcll", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "CADOECOWE (CA Domestic Economy West)"}, {"carrier": "parcll", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "CAECOCE (US to CA Economy)"}, {"carrier": "parcll", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "CAECONE + (US to CA Economy)"}, {"carrier": "parcll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "CAECOWE (US to CA + Economy)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "ECOCE (Economy Central)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ECOWE (Economy West)"}, {"carrier": "parcll", "description": + null, "name": "ECOEA (Economy East)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ECOCE (Economy Central)"}, {"carrier": "parcll", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "ECONE (Economy Northeast)"}, + "ECONE (Economy Northeast)"}, {"carrier": "parcll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "ECOSO (Economy South)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ECOEA (Economy East)"}, {"carrier": "parcll", + null, "max_weight": null, "name": "ECOWE (Economy West)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ECOSO (Economy South)"}, {"carrier": "parcll", "description": + null, "name": "EUECOWE (US to Europe Economy)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "EXPWE (Expedited West)"}, {"carrier": "parcll", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "EXPBNE (Expedited - Northeast)"}, {"carrier": "parcll", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "REGWE (Regional West)"}, + "EXPBNE (Expedited Northeast)"}, {"carrier": "parcll", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "EXPWE + (Expedited West)"}, {"carrier": "parcll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "REGCE (Regional Central)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "REGCE (Regional Central)"}, {"carrier": - "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "max_weight": null, "name": "REGEA (Regional East)"}, {"carrier": "parcll", + "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "REGNE (Regional Northeast)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "REGEA (Regional East)"}, {"carrier": "parcll", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "REGSO (Regional South)"}, - {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "CAECOWE (US to CA Economy)"}, {"carrier": - "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "CAECOCE (US to CA Economy)"}, {"carrier": "parcll", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "CAECONE (US to CA Economy)"}, {"carrier": "parcll", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "EUECOWE - (US to Europe Economy)"}], "shipment_options": [], "supported_features": []}, - {"human_readable": "Passport", "name": "passportglobal", "predefined_packages": - [], "service_levels": [], "shipment_options": [], "supported_features": []}, - {"human_readable": "PostNL", "name": "postnl", "predefined_packages": [], - "service_levels": [], "shipment_options": [], "supported_features": []}, {"human_readable": - "Purolator", "name": "purolator", "predefined_packages": [{"carrier": "purolator", - "description": null, "dimensions": [], "human_readable": "CustomerPackaging", - "max_weight": null, "name": "CUSTOMERPACKAGING"}, {"carrier": "purolator", - "description": null, "dimensions": [], "human_readable": "ExpressPack", "max_weight": - null, "name": "EXPRESSPACK"}, {"carrier": "purolator", "description": null, - "dimensions": [], "human_readable": "ExpressBox", "max_weight": null, "name": - "EXPRESSBOX"}, {"carrier": "purolator", "description": null, "dimensions": - [], "human_readable": "ExpressEnvelope", "max_weight": null, "name": "EXPRESSENVELOPE"}], - "service_levels": [{"carrier": "purolator", "description": null, "dimensions": - [], "human_readable": "Purolator Express", "max_weight": null, "name": "PurolatorExpress"}, - {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": - "Purolator Express 12PM", "max_weight": null, "name": "PurolatorExpress12PM"}, - {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": - "Purolator Express Pack 12PM", "max_weight": null, "name": "PurolatorExpressPack12PM"}, + "REGSO (Regional South)"}, {"carrier": "parcll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "REGWE (Regional West)"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "Passport", + "name": "passportglobal", "predefined_packages": [], "service_levels": [], + "shipment_options": [], "supported_features": []}, {"human_readable": "PostNL", + "name": "postnl", "predefined_packages": [], "service_levels": [], "shipment_options": + [], "supported_features": []}, {"human_readable": "Purolator", "name": "purolator", + "predefined_packages": [{"carrier": "purolator", "description": null, "dimensions": + [], "human_readable": "CustomerPackaging", "max_weight": null, "name": "CUSTOMERPACKAGING"}, {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": - "Purolator Express Box 12PM", "max_weight": null, "name": "PurolatorExpressBox12PM"}, - {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": - "Purolator Express Envelope 12PM", "max_weight": null, "name": "PurolatorExpressEnvelope12PM"}, - {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": - "Purolator Express 10:30AM", "max_weight": null, "name": "PurolatorExpress1030AM"}, - {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": - "Purolator Express 9AM", "max_weight": null, "name": "PurolatorExpress9AM"}, - {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": - "Purolator Express Box", "max_weight": null, "name": "PurolatorExpressBox"}, - {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": - "Purolator Express Box 10:30AM", "max_weight": null, "name": "PurolatorExpressBox1030AM"}, + "ExpressPack", "max_weight": null, "name": "EXPRESSPACK"}, {"carrier": "purolator", + "description": null, "dimensions": [], "human_readable": "ExpressBox", "max_weight": + null, "name": "EXPRESSBOX"}, {"carrier": "purolator", "description": null, + "dimensions": [], "human_readable": "ExpressEnvelope", "max_weight": null, + "name": "EXPRESSENVELOPE"}], "service_levels": [{"carrier": "purolator", "description": + null, "dimensions": [], "human_readable": "Purolator Express", "max_weight": + null, "name": "PurolatorExpress"}, {"carrier": "purolator", "description": + null, "dimensions": [], "human_readable": "Purolator Express 12PM", "max_weight": + null, "name": "PurolatorExpress12PM"}, {"carrier": "purolator", "description": + null, "dimensions": [], "human_readable": "Purolator Express Pack 12PM", "max_weight": + null, "name": "PurolatorExpressPack12PM"}, {"carrier": "purolator", "description": + null, "dimensions": [], "human_readable": "Purolator Express Box 12PM", "max_weight": + null, "name": "PurolatorExpressBox12PM"}, {"carrier": "purolator", "description": + null, "dimensions": [], "human_readable": "Purolator Express Envelope 12PM", + "max_weight": null, "name": "PurolatorExpressEnvelope12PM"}, {"carrier": "purolator", + "description": null, "dimensions": [], "human_readable": "Purolator Express + 10:30AM", "max_weight": null, "name": "PurolatorExpress1030AM"}, {"carrier": + "purolator", "description": null, "dimensions": [], "human_readable": "Purolator + Express 9AM", "max_weight": null, "name": "PurolatorExpress9AM"}, {"carrier": + "purolator", "description": null, "dimensions": [], "human_readable": "Purolator + Express Box", "max_weight": null, "name": "PurolatorExpressBox"}, {"carrier": + "purolator", "description": null, "dimensions": [], "human_readable": "Purolator + Express Box 10:30AM", "max_weight": null, "name": "PurolatorExpressBox1030AM"}, {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": "Purolator Express Box 9AM", "max_weight": null, "name": "PurolatorExpressBox9AM"}, {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": @@ -1411,21 +1803,23 @@ interactions: {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": "Purolator Quick Ship Box", "max_weight": null, "name": "PurolatorQuickShipBox"}], "shipment_options": [], "supported_features": [{"carrier": "purolator", "description": - null, "name": "labels", "supported": true}, {"carrier": "purolator", "description": - null, "name": "orders", "supported": true}, {"carrier": "purolator", "description": - null, "name": "pickups", "supported": true}, {"carrier": "purolator", "description": - "Purolator bills at the end of the day for all labels created that day. You - cannot refund a label after the end of the day it was created.", "name": "refunds", - "supported": true}, {"carrier": "purolator", "description": null, "name": - "returns", "supported": true}, {"carrier": "purolator", "description": null, - "name": "scanforms", "supported": true}, {"carrier": "purolator", "description": - null, "name": "rating", "supported": false}, {"carrier": "purolator", "description": - null, "name": "tracking", "supported": false}, {"carrier": "purolator", "description": null, "name": "bill_on_delivery", "supported": true}, {"carrier": "purolator", "description": null, "name": "commercial_invoices", "supported": true}, {"carrier": + "purolator", "description": null, "name": "labels", "supported": true}, {"carrier": + "purolator", "description": null, "name": "orders", "supported": true}, {"carrier": + "purolator", "description": null, "name": "pickups", "supported": true}, {"carrier": + "purolator", "description": null, "name": "rating", "supported": true}, {"carrier": + "purolator", "description": "Purolator bills at the end of the day for all + labels created that day. You cannot refund a label after the end of the day + it was created.", "name": "refunds", "supported": true}, {"carrier": "purolator", + "description": null, "name": "returns", "supported": true}, {"carrier": "purolator", + "description": null, "name": "scanforms", "supported": true}, {"carrier": "purolator", "description": null, "name": "sort_codes", "supported": false}, {"carrier": "purolator", "description": null, "name": "test_environment", - "supported": true}]}, {"human_readable": "Royal Mail", "name": "royalmail", + "supported": true}]}, {"human_readable": "Quick", "name": "quick", "predefined_packages": + [], "service_levels": [{"carrier": "quick", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Routed"}], "shipment_options": + [], "supported_features": []}, {"human_readable": "Royal Mail", "name": "royalmail", "predefined_packages": [{"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "LARGELETTER"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, @@ -1515,26 +1909,25 @@ interactions: "name": "print_custom_2", "type": "string"}, {"carrier": "royalmail", "deprecated": false, "description": null, "human_readable": "Saturday Delivery", "name": "saturday_delivery", "type": "boolean"}], "supported_features": [{"carrier": - "royalmail", "description": null, "name": "labels", "supported": true}, {"carrier": - "royalmail", "description": null, "name": "orders", "supported": false}, {"carrier": - "royalmail", "description": null, "name": "pickups", "supported": false}, - {"carrier": "royalmail", "description": null, "name": "refunds", "supported": + "royalmail", "description": null, "name": "bill_on_delivery", "supported": + false}, {"carrier": "royalmail", "description": null, "name": "bill_on_label_purchase", + "supported": false}, {"carrier": "royalmail", "description": null, "name": + "bill_on_manifest", "supported": true}, {"carrier": "royalmail", "description": + null, "name": "bill_on_scan", "supported": false}, {"carrier": "royalmail", + "description": null, "name": "commercial_invoices", "supported": false}, {"carrier": + "royalmail", "description": null, "name": "delivers_to_po_box", "supported": + true}, {"carrier": "royalmail", "description": null, "name": "labels", "supported": + true}, {"carrier": "royalmail", "description": null, "name": "orders", "supported": + false}, {"carrier": "royalmail", "description": null, "name": "pickups", "supported": + false}, {"carrier": "royalmail", "description": null, "name": "rating", "supported": + true}, {"carrier": "royalmail", "description": null, "name": "refunds", "supported": true}, {"carrier": "royalmail", "description": null, "name": "returns", "supported": true}, {"carrier": "royalmail", "description": null, "name": "scanforms", "supported": true}, {"carrier": "royalmail", "description": null, "name": - "rating", "supported": false}, {"carrier": "royalmail", "description": null, - "name": "tracking", "supported": false}, {"carrier": "royalmail", "description": - null, "name": "bill_on_label_purchase", "supported": false}, {"carrier": "royalmail", - "description": null, "name": "bill_on_delivery", "supported": false}, {"carrier": - "royalmail", "description": null, "name": "bill_on_scan", "supported": false}, - {"carrier": "royalmail", "description": null, "name": "bill_on_manifest", - "supported": true}, {"carrier": "royalmail", "description": null, "name": - "commercial_invoices", "supported": false}, {"carrier": "royalmail", "description": - null, "name": "delivers_to_po_box", "supported": true}, {"carrier": "royalmail", - "description": null, "name": "sort_codes", "supported": true}, {"carrier": - "royalmail", "description": null, "name": "test_environment", "supported": - true}]}, {"human_readable": "SEKO OmniParcel", "name": "sekoomniparcel", "predefined_packages": - [{"carrier": "sekoomniparcel", "description": null, "dimensions": [], "human_readable": + "sort_codes", "supported": true}, {"carrier": "royalmail", "description": + null, "name": "test_environment", "supported": true}]}, {"human_readable": + "SEKO OmniParcel", "name": "sekoomniparcel", "predefined_packages": [{"carrier": + "sekoomniparcel", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Bag"}, {"carrier": "sekoomniparcel", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Box"}, {"carrier": "sekoomniparcel", "description": null, "dimensions": [], @@ -1563,54 +1956,107 @@ interactions: [], "service_levels": [{"carrier": "sendle", "description": null, "dimensions": [], "human_readable": "Standard", "max_weight": null, "name": "Standard"}, {"carrier": "sendle", "description": null, "dimensions": [], "human_readable": - "Express", "max_weight": null, "name": "Express"}], "shipment_options": [], - "supported_features": []}, {"human_readable": "SF Express", "name": "sfexpress", - "predefined_packages": [], "service_levels": [{"carrier": "sfexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InternationalStandardExpressDoc"}, {"carrier": "sfexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InternationalStandardExpressParcel"}, {"carrier": "sfexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InternationalEconomyExpressPilot"}, {"carrier": "sfexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InternationalEconomyExpressDoc"}, {"carrier": "sfexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InternationalEconomyExpressParcel"}, {"carrier": "sfexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "DomesticExpress"}, {"carrier": "sfexpress", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "DomesticStandard"}, + "Express", "max_weight": null, "name": "Express"}, {"carrier": "sendle", "description": + null, "dimensions": [], "human_readable": "Saver", "max_weight": null, "name": + "Saver"}, {"carrier": "sendle", "description": null, "dimensions": [], "human_readable": + "Two-Day", "max_weight": null, "name": "Two-Day"}, {"carrier": "sendle", "description": + null, "dimensions": [], "human_readable": "Three-Day", "max_weight": null, + "name": "Three-Day"}], "shipment_options": [], "supported_features": []}, + {"human_readable": "SF Express", "name": "sfexpress", "predefined_packages": + [], "service_levels": [{"carrier": "sfexpress", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "InternationalStandardExpressDoc"}, + {"carrier": "sfexpress", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "InternationalStandardExpressParcel"}, {"carrier": + "sfexpress", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "InternationalEconomyExpressPilot"}, {"carrier": + "sfexpress", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "InternationalEconomyExpressDoc"}, {"carrier": + "sfexpress", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "InternationalEconomyExpressParcel"}, {"carrier": + "sfexpress", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "DomesticExpress"}, {"carrier": "sfexpress", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "DomesticStandard"}, {"carrier": "sfexpress", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "DomesticIntraCity"}, {"carrier": "sfexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "DomesticIntraCity"}, {"carrier": "sfexpress", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "StandardExpress"}, {"carrier": "sfexpress", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "EconomyExpress"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "SmartKargo", "name": "smartkargo", "predefined_packages": [], "service_levels": - [{"carrier": "smartkargo", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "EPR"}], "shipment_options": [], "supported_features": - []}, {"human_readable": "Sonic", "name": "sonic", "predefined_packages": [], - "service_levels": [{"carrier": "sonic", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "NEXTDAY"}, {"carrier": - "sonic", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "SAMEDAY"}], "shipment_options": [], "supported_features": []}, - {"human_readable": "Spee-Dee", "name": "speedee", "predefined_packages": [], - "service_levels": [{"carrier": "speedee", "description": null, "dimensions": + null, "max_weight": null, "name": "StandardExpress"}, {"carrier": "sfexpress", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "EconomyExpress"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "SmartKargo", "name": "smartkargo", "predefined_packages": + [], "service_levels": [{"carrier": "smartkargo", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "EPR"}, {"carrier": + "smartkargo", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "EPS"}, {"carrier": "smartkargo", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "EST"}, {"carrier": "smartkargo", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "EXP"}], "shipment_options": [], "supported_features": + [{"carrier": "smartkargo", "description": null, "name": "labels", "supported": + null}, {"carrier": "smartkargo", "description": null, "name": "rating", "supported": + true}, {"carrier": "smartkargo", "description": null, "name": "refunds", "supported": + null}, {"carrier": "smartkargo", "description": null, "name": "test_environment", + "supported": null}]}, {"human_readable": "Sonic", "name": "sonic", "predefined_packages": + [], "service_levels": [{"carrier": "sonic", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "SAMEDAY"}], "shipment_options": + [], "supported_features": [{"carrier": "sonic", "description": null, "name": + "bill_on_delivery", "supported": true}, {"carrier": "sonic", "description": + null, "name": "bill_on_label_purchase", "supported": false}, {"carrier": "sonic", + "description": null, "name": "bill_on_manifest", "supported": false}, {"carrier": + "sonic", "description": null, "name": "bill_on_scan", "supported": false}, + {"carrier": "sonic", "description": null, "name": "commercial_invoices", "supported": + false}, {"carrier": "sonic", "description": null, "name": "labels", "supported": + true}, {"carrier": "sonic", "description": null, "name": "orders", "supported": + false}, {"carrier": "sonic", "description": null, "name": "pickups", "supported": + false}, {"carrier": "sonic", "description": null, "name": "rating", "supported": + true}, {"carrier": "sonic", "description": null, "name": "refunds", "supported": + true}, {"carrier": "sonic", "description": null, "name": "returns", "supported": + false}, {"carrier": "sonic", "description": null, "name": "scanforms", "supported": + false}, {"carrier": "sonic", "description": null, "name": "sort_codes", "supported": + false}, {"carrier": "sonic", "description": null, "name": "test_environment", + "supported": false}]}, {"human_readable": "Spee-Dee", "name": "speedee", "predefined_packages": + [], "service_levels": [{"carrier": "speedee", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "SpeeDeeDelivery"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "Swyft", - "name": "swyft", "predefined_packages": [], "service_levels": [{"carrier": + "shipment_options": [], "supported_features": []}, {"human_readable": "SpeedX", + "name": "speedx", "predefined_packages": [], "service_levels": [{"carrier": + "speedx", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "DGD"}, {"carrier": "speedx", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "D2A"}, {"carrier": + "speedx", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "DZS"}], "shipment_options": [], "supported_features": [{"carrier": + "speedx", "description": null, "name": "labels", "supported": null}, {"carrier": + "speedx", "description": null, "name": "rating", "supported": true}, {"carrier": + "speedx", "description": null, "name": "refunds", "supported": null}]}, {"human_readable": + "Swyft", "name": "swyft", "predefined_packages": [], "service_levels": [{"carrier": "swyft", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "NEXTDAY"}, {"carrier": "swyft", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "SAMEDAY"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "TForce Logistics", "name": - "tforce", "predefined_packages": [], "service_levels": [{"carrier": "tforce", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "NextDay"}, {"carrier": "tforce", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Return"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "Toll", "name": "toll", - "predefined_packages": [], "service_levels": [{"carrier": "toll", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "IPEC Direct"}, {"carrier": "toll", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "IPEC Fashion"}, {"carrier": + [], "supported_features": [{"carrier": "swyft", "description": null, "name": + "bill_on_delivery", "supported": true}, {"carrier": "swyft", "description": + null, "name": "bill_on_label_purchase", "supported": false}, {"carrier": "swyft", + "description": null, "name": "bill_on_manifest", "supported": false}, {"carrier": + "swyft", "description": null, "name": "bill_on_scan", "supported": false}, + {"carrier": "swyft", "description": null, "name": "commercial_invoices", "supported": + false}, {"carrier": "swyft", "description": null, "name": "labels", "supported": + false}, {"carrier": "swyft", "description": null, "name": "orders", "supported": + false}, {"carrier": "swyft", "description": null, "name": "pickups", "supported": + false}, {"carrier": "swyft", "description": null, "name": "rating", "supported": + true}, {"carrier": "swyft", "description": null, "name": "refunds", "supported": + true}, {"carrier": "swyft", "description": null, "name": "returns", "supported": + false}, {"carrier": "swyft", "description": null, "name": "scanforms", "supported": + false}, {"carrier": "swyft", "description": null, "name": "sort_codes", "supported": + false}, {"carrier": "swyft", "description": null, "name": "test_environment", + "supported": false}]}, {"human_readable": "TCC", "name": "tcc", "predefined_packages": + [], "service_levels": [{"carrier": "tcc", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Smith Drug Same Day"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "TForce + Logistics", "name": "tforce", "predefined_packages": [], "service_levels": + [{"carrier": "tforce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "NextDay"}, {"carrier": "tforce", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "Return"}], "shipment_options": [], "supported_features": []}, {"human_readable": + "Toll", "name": "toll", "predefined_packages": [], "service_levels": [{"carrier": + "toll", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "IPEC Direct"}, {"carrier": "toll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "IPEC Fashion"}, {"carrier": "toll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "IPEC Local"}, {"carrier": "toll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "IPEC Priority"}, @@ -1671,35 +2117,47 @@ interactions: [], "service_levels": [], "shipment_options": [], "supported_features": []}, {"human_readable": "UPS Mail Innovations", "name": "upsmailinnovations", "predefined_packages": [], "service_levels": [{"carrier": "upsmailinnovations", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "EconomyMailInnovations"}, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "BPMFlats"}, {"carrier": "upsmailinnovations", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ExpeditedMailInnovations"}, {"carrier": - "upsmailinnovations", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "First"}, {"carrier": "upsmailinnovations", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Priority"}, {"carrier": "upsmailinnovations", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "PriorityMailInnovations"}, {"carrier": "upsmailinnovations", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "SingleReturns"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "USPS", "name": "usps", "predefined_packages": [{"carrier": "usps", "description": - null, "dimensions": ["6in x 4.5in x 0.016in"], "human_readable": null, "max_weight": - null, "name": "Card"}, {"carrier": "usps", "description": null, "dimensions": - ["11.5in x 6.125in x 0.25in"], "human_readable": null, "max_weight": null, - "name": "Letter"}, {"carrier": "usps", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Flat"}, {"carrier": - "usps", "description": null, "dimensions": ["12.5in x 9.5in"], "human_readable": - null, "max_weight": null, "name": "FlatRateEnvelope"}, {"carrier": "usps", - "description": null, "dimensions": ["15in x 9.5in"], "human_readable": null, - "max_weight": null, "name": "FlatRateLegalEnvelope"}, {"carrier": "usps", - "description": null, "dimensions": ["12.5in x 9.5in"], "human_readable": null, - "max_weight": null, "name": "FlatRatePaddedEnvelope"}, {"carrier": "usps", - "description": null, "dimensions": ["10in x 5in", "12.5in x 9.5in"], "human_readable": - null, "max_weight": null, "name": "FlatRateWindowEnvelope"}, {"carrier": "usps", - "description": null, "dimensions": ["12.5in x 9.5in"], "human_readable": null, - "max_weight": null, "name": "FlatRateCardboardEnvelope"}, {"carrier": "usps", - "description": null, "dimensions": ["10in x 6in"], "human_readable": null, - "max_weight": null, "name": "SmallFlatRateEnvelope"}, {"carrier": "usps", + null, "max_weight": null, "name": "BPMParcels"}, {"carrier": "upsmailinnovations", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "EconomyMailInnovations"}, {"carrier": "upsmailinnovations", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "ExpeditedMailInnovations"}, {"carrier": "upsmailinnovations", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "First"}, {"carrier": "upsmailinnovations", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "MarketingParcels"}, + {"carrier": "upsmailinnovations", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "MediaMail"}, {"carrier": "upsmailinnovations", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "ParcelSelect"}, {"carrier": "upsmailinnovations", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "ParcelSelectLightweight-Irreg"}, {"carrier": "upsmailinnovations", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "Priority"}, {"carrier": "upsmailinnovations", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "PriorityMailInnovations"}, + {"carrier": "upsmailinnovations", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "SingleReturns"}, {"carrier": "upsmailinnovations", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "StandardFlats"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "USPS", "name": "usps", "predefined_packages": [{"carrier": + "usps", "description": null, "dimensions": ["6in x 4.5in x 0.016in"], "human_readable": + null, "max_weight": null, "name": "Card"}, {"carrier": "usps", "description": + null, "dimensions": ["11.5in x 6.125in x 0.25in"], "human_readable": null, + "max_weight": null, "name": "Letter"}, {"carrier": "usps", "description": + null, "dimensions": ["11.5in x 6.125in x 0.75in"], "human_readable": null, + "max_weight": null, "name": "Flat"}, {"carrier": "usps", "description": null, + "dimensions": ["12.5in x 9.5in"], "human_readable": null, "max_weight": null, + "name": "FlatRateEnvelope"}, {"carrier": "usps", "description": null, "dimensions": + ["15in x 9.5in"], "human_readable": null, "max_weight": null, "name": "FlatRateLegalEnvelope"}, + {"carrier": "usps", "description": null, "dimensions": ["12.5in x 9.5in"], + "human_readable": null, "max_weight": null, "name": "FlatRatePaddedEnvelope"}, + {"carrier": "usps", "description": null, "dimensions": ["10in x 5in", "12.5in + x 9.5in"], "human_readable": null, "max_weight": null, "name": "FlatRateWindowEnvelope"}, + {"carrier": "usps", "description": null, "dimensions": ["12.5in x 9.5in"], + "human_readable": null, "max_weight": null, "name": "FlatRateCardboardEnvelope"}, + {"carrier": "usps", "description": null, "dimensions": ["10in x 6in"], "human_readable": + null, "max_weight": null, "name": "SmallFlatRateEnvelope"}, {"carrier": "usps", "description": null, "dimensions": ["Varies based on service level"], "human_readable": null, "max_weight": null, "name": "Parcel"}, {"carrier": "usps", "description": null, "dimensions": ["Varies based on service level"], "human_readable": null, @@ -1720,61 +2178,66 @@ interactions: "usps", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "HalfTrayBox"}, {"carrier": "usps", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "PMODSack"}], "service_levels": - [{"carrier": "usps", "description": "1-5 business days", "dimensions": ["22in - x 18in x 15in"], "human_readable": null, "max_weight": 13.0, "name": "First"}, - {"carrier": "usps", "description": "1-3 business days", "dimensions": ["Combined - Length and Girth < 108in"], "human_readable": null, "max_weight": 1120.0, - "name": "Priority"}, {"carrier": "usps", "description": "1-2 days", "dimensions": - ["Combined Length and Girth < 108in"], "human_readable": null, "max_weight": - 1120.0, "name": "Express"}, {"carrier": "usps", "description": "2-8 business - days", "dimensions": ["Combined Length and Girth < 108in"], "human_readable": - null, "max_weight": 1120.0, "name": "ParcelSelect"}, {"carrier": "usps", "description": + [{"carrier": "usps", "description": "1-5 business days", "dimensions": ["Cards, + Letters and Flats only (no Parcels)", "See Predefined Packages (Card, Letter, + Flat) for details"], "human_readable": "First-Class Mail\u00ae", "max_weight": + 13.0, "name": "First"}, {"carrier": "usps", "description": "1-3 business days", + "dimensions": ["Combined Length and Girth < 108in"], "human_readable": "Priority + Mail\u00ae", "max_weight": 1120.0, "name": "Priority"}, {"carrier": "usps", + "description": "1-2 days", "dimensions": ["Combined Length and Girth < 108in"], + "human_readable": "Priority Mail Express\u00ae", "max_weight": 1120.0, "name": + "Express"}, {"carrier": "usps", "description": "2-5 days", "dimensions": ["Combined + Length and Girth < 130in"], "human_readable": "USPS Ground Advantage\u00ae", + "max_weight": 70.0, "name": "GroundAdvantage"}, {"carrier": "usps", "description": "2-8 business days", "dimensions": ["Combined Length and Girth < 108in"], - "human_readable": null, "max_weight": 1120.0, "name": "LibraryMail"}, {"carrier": - "usps", "description": "2-8 business days", "dimensions": ["Combined Length - and Girth < 108in"], "human_readable": null, "max_weight": 1120.0, "name": - "MediaMail"}, {"carrier": "usps", "description": null, "dimensions": ["Must - be rectangular, otherwise an additional charge may apply."], "human_readable": - null, "max_weight": 15.994, "name": "FirstClassMailInternational"}, {"carrier": - "usps", "description": "7-21 days", "dimensions": ["Packages (Other Than Rolls): - Combined Length and Girth < 108in", "Rolls (Tubes): Length: min 4in; max 36 - in. Length plus twice the diameter (combined): min 6.75 in; max 42in.", "Some - countries have specific prohibitions and restrictions"], "human_readable": - null, "max_weight": 64.0, "name": "FirstClassPackageInternationalService"}, - {"carrier": "usps", "description": "6-10 business days", "dimensions": ["Combined - Length and Girth < 108in"], "human_readable": null, "max_weight": 1120.0, + "human_readable": "Library Mail\u00ae", "max_weight": 1120.0, "name": "LibraryMail"}, + {"carrier": "usps", "description": "2-8 business days", "dimensions": ["Combined + Length and Girth < 108in"], "human_readable": "Media Mail\u00ae", "max_weight": + 1120.0, "name": "MediaMail"}, {"carrier": "usps", "description": null, "dimensions": + ["Must be rectangular, otherwise an additional charge may apply."], "human_readable": + "First-Class Mail International\u00ae", "max_weight": 15.994, "name": "FirstClassMailInternational"}, + {"carrier": "usps", "description": "7-21 days", "dimensions": ["Packages (Other + Than Rolls): Combined Length and Girth < 108in", "Rolls (Tubes): Length: min + 4in; max 36 in. Length plus twice the diameter (combined): min 6.75 in; max + 42in.", "Some countries have specific prohibitions and restrictions"], "human_readable": + "First-Class Package International Service\u00ae", "max_weight": 64.0, "name": + "FirstClassPackageInternationalService"}, {"carrier": "usps", "description": + "6-10 business days", "dimensions": ["Combined Length and Girth < 108in"], + "human_readable": "Priority Mail International\u00ae", "max_weight": 1120.0, "name": "PriorityMailInternational"}, {"carrier": "usps", "description": "3-5 business days", "dimensions": ["Combined Length and Girth < 108in"], "human_readable": - null, "max_weight": 1120.0, "name": "ExpressMailInternational"}], "shipment_options": - [], "supported_features": [{"carrier": "usps", "description": null, "name": - "bill_on_delivery", "supported": null}, {"carrier": "usps", "description": - null, "name": "bill_on_label_purchase", "supported": null}, {"carrier": "usps", - "description": null, "name": "commercial_invoices", "supported": null}, {"carrier": - "usps", "description": null, "name": "delivers_to_po_box", "supported": null}, - {"carrier": "usps", "description": null, "name": "labels", "supported": null}, - {"carrier": "usps", "description": null, "name": "pickups", "supported": null}, - {"carrier": "usps", "description": null, "name": "rating", "supported": false}, - {"carrier": "usps", "description": null, "name": "refunds", "supported": null}, - {"carrier": "usps", "description": null, "name": "returns", "supported": null}, - {"carrier": "usps", "description": null, "name": "scanforms", "supported": - null}, {"carrier": "usps", "description": null, "name": "test_environment", - "supported": null}, {"carrier": "usps", "description": null, "name": "tracking", - "supported": false}]}, {"human_readable": "Veho", "name": "veho", "predefined_packages": + "Priority Mail Express International\u00ae", "max_weight": 1120.0, "name": + "ExpressMailInternational"}], "shipment_options": [], "supported_features": + [{"carrier": "usps", "description": null, "name": "bill_on_delivery", "supported": + null}, {"carrier": "usps", "description": null, "name": "bill_on_label_purchase", + "supported": null}, {"carrier": "usps", "description": null, "name": "commercial_invoices", + "supported": null}, {"carrier": "usps", "description": null, "name": "delivers_to_po_box", + "supported": null}, {"carrier": "usps", "description": null, "name": "labels", + "supported": null}, {"carrier": "usps", "description": null, "name": "pickups", + "supported": null}, {"carrier": "usps", "description": null, "name": "rating", + "supported": true}, {"carrier": "usps", "description": null, "name": "refunds", + "supported": null}, {"carrier": "usps", "description": null, "name": "returns", + "supported": null}, {"carrier": "usps", "description": null, "name": "scanforms", + "supported": null}, {"carrier": "usps", "description": null, "name": "test_environment", + "supported": null}]}, {"human_readable": "Veho", "name": "veho", "predefined_packages": [], "service_levels": [{"carrier": "veho", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "nextDay"}, {"carrier": - "veho", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "sameDay"}], "shipment_options": [], "supported_features": []}, - {"human_readable": "Yanwen", "name": "yanwen", "predefined_packages": [], - "service_levels": [], "shipment_options": [], "supported_features": []}]}' + null, "human_readable": "Next Day", "max_weight": 800.0, "name": "nextDay"}, + {"carrier": "veho", "description": null, "dimensions": null, "human_readable": + "Same Day", "max_weight": 800.0, "name": "sameDay"}], "shipment_options": + [], "supported_features": [{"carrier": "veho", "description": null, "name": + "labels", "supported": null}, {"carrier": "veho", "description": null, "name": + "pickups", "supported": null}, {"carrier": "veho", "description": null, "name": + "rating", "supported": true}, {"carrier": "veho", "description": null, "name": + "test_environment", "supported": null}]}, {"human_readable": "Yanwen", "name": + "yanwen", "predefined_packages": [], "service_levels": [], "shipment_options": + [], "supported_features": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '130177' + - '165173' content-type: - application/json; charset=utf-8 - etag: - - W/"c2966a8b0aa68f29f2cfb0f6930cbabf" expires: - '0' pragma: @@ -1792,20 +2255,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 37beff0364777761e788ee020018f3d6 + - 62c1f5d766be5c7be7885e2700170333 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.181185' + - '0.080152' x-version-label: - - easypost-202305311544-49bde6df69-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_retrieve_carrier_metadata_with_filters.yaml b/tests/cassettes/test_retrieve_carrier_metadata_with_filters.yaml index 3e75d59a..31ec003e 100644 --- a/tests/cassettes/test_retrieve_carrier_metadata_with_filters.yaml +++ b/tests/cassettes/test_retrieve_carrier_metadata_with_filters.yaml @@ -21,19 +21,19 @@ interactions: "human_readable": null, "max_weight": null, "name": "Card"}, {"carrier": "usps", "description": null, "dimensions": ["11.5in x 6.125in x 0.25in"], "human_readable": null, "max_weight": null, "name": "Letter"}, {"carrier": "usps", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Flat"}, {"carrier": "usps", "description": null, "dimensions": ["12.5in x - 9.5in"], "human_readable": null, "max_weight": null, "name": "FlatRateEnvelope"}, - {"carrier": "usps", "description": null, "dimensions": ["15in x 9.5in"], "human_readable": - null, "max_weight": null, "name": "FlatRateLegalEnvelope"}, {"carrier": "usps", - "description": null, "dimensions": ["12.5in x 9.5in"], "human_readable": null, - "max_weight": null, "name": "FlatRatePaddedEnvelope"}, {"carrier": "usps", - "description": null, "dimensions": ["10in x 5in", "12.5in x 9.5in"], "human_readable": - null, "max_weight": null, "name": "FlatRateWindowEnvelope"}, {"carrier": "usps", - "description": null, "dimensions": ["12.5in x 9.5in"], "human_readable": null, - "max_weight": null, "name": "FlatRateCardboardEnvelope"}, {"carrier": "usps", - "description": null, "dimensions": ["10in x 6in"], "human_readable": null, - "max_weight": null, "name": "SmallFlatRateEnvelope"}, {"carrier": "usps", + null, "dimensions": ["11.5in x 6.125in x 0.75in"], "human_readable": null, + "max_weight": null, "name": "Flat"}, {"carrier": "usps", "description": null, + "dimensions": ["12.5in x 9.5in"], "human_readable": null, "max_weight": null, + "name": "FlatRateEnvelope"}, {"carrier": "usps", "description": null, "dimensions": + ["15in x 9.5in"], "human_readable": null, "max_weight": null, "name": "FlatRateLegalEnvelope"}, + {"carrier": "usps", "description": null, "dimensions": ["12.5in x 9.5in"], + "human_readable": null, "max_weight": null, "name": "FlatRatePaddedEnvelope"}, + {"carrier": "usps", "description": null, "dimensions": ["10in x 5in", "12.5in + x 9.5in"], "human_readable": null, "max_weight": null, "name": "FlatRateWindowEnvelope"}, + {"carrier": "usps", "description": null, "dimensions": ["12.5in x 9.5in"], + "human_readable": null, "max_weight": null, "name": "FlatRateCardboardEnvelope"}, + {"carrier": "usps", "description": null, "dimensions": ["10in x 6in"], "human_readable": + null, "max_weight": null, "name": "SmallFlatRateEnvelope"}, {"carrier": "usps", "description": null, "dimensions": ["Varies based on service level"], "human_readable": null, "max_weight": null, "name": "Parcel"}, {"carrier": "usps", "description": null, "dimensions": ["Varies based on service level"], "human_readable": null, @@ -54,41 +54,43 @@ interactions: "usps", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "HalfTrayBox"}, {"carrier": "usps", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "PMODSack"}], "service_levels": - [{"carrier": "usps", "description": "1-5 business days", "dimensions": ["22in - x 18in x 15in"], "human_readable": null, "max_weight": 13.0, "name": "First"}, - {"carrier": "usps", "description": "1-3 business days", "dimensions": ["Combined - Length and Girth < 108in"], "human_readable": null, "max_weight": 1120.0, - "name": "Priority"}, {"carrier": "usps", "description": "1-2 days", "dimensions": - ["Combined Length and Girth < 108in"], "human_readable": null, "max_weight": - 1120.0, "name": "Express"}, {"carrier": "usps", "description": "2-8 business - days", "dimensions": ["Combined Length and Girth < 108in"], "human_readable": - null, "max_weight": 1120.0, "name": "ParcelSelect"}, {"carrier": "usps", "description": + [{"carrier": "usps", "description": "1-5 business days", "dimensions": ["Cards, + Letters and Flats only (no Parcels)", "See Predefined Packages (Card, Letter, + Flat) for details"], "human_readable": "First-Class Mail\u00ae", "max_weight": + 13.0, "name": "First"}, {"carrier": "usps", "description": "1-3 business days", + "dimensions": ["Combined Length and Girth < 108in"], "human_readable": "Priority + Mail\u00ae", "max_weight": 1120.0, "name": "Priority"}, {"carrier": "usps", + "description": "1-2 days", "dimensions": ["Combined Length and Girth < 108in"], + "human_readable": "Priority Mail Express\u00ae", "max_weight": 1120.0, "name": + "Express"}, {"carrier": "usps", "description": "2-5 days", "dimensions": ["Combined + Length and Girth < 130in"], "human_readable": "USPS Ground Advantage\u00ae", + "max_weight": 70.0, "name": "GroundAdvantage"}, {"carrier": "usps", "description": "2-8 business days", "dimensions": ["Combined Length and Girth < 108in"], - "human_readable": null, "max_weight": 1120.0, "name": "LibraryMail"}, {"carrier": - "usps", "description": "2-8 business days", "dimensions": ["Combined Length - and Girth < 108in"], "human_readable": null, "max_weight": 1120.0, "name": - "MediaMail"}, {"carrier": "usps", "description": null, "dimensions": ["Must - be rectangular, otherwise an additional charge may apply."], "human_readable": - null, "max_weight": 15.994, "name": "FirstClassMailInternational"}, {"carrier": - "usps", "description": "7-21 days", "dimensions": ["Packages (Other Than Rolls): - Combined Length and Girth < 108in", "Rolls (Tubes): Length: min 4in; max 36 - in. Length plus twice the diameter (combined): min 6.75 in; max 42in.", "Some - countries have specific prohibitions and restrictions"], "human_readable": - null, "max_weight": 64.0, "name": "FirstClassPackageInternationalService"}, - {"carrier": "usps", "description": "6-10 business days", "dimensions": ["Combined - Length and Girth < 108in"], "human_readable": null, "max_weight": 1120.0, + "human_readable": "Library Mail\u00ae", "max_weight": 1120.0, "name": "LibraryMail"}, + {"carrier": "usps", "description": "2-8 business days", "dimensions": ["Combined + Length and Girth < 108in"], "human_readable": "Media Mail\u00ae", "max_weight": + 1120.0, "name": "MediaMail"}, {"carrier": "usps", "description": null, "dimensions": + ["Must be rectangular, otherwise an additional charge may apply."], "human_readable": + "First-Class Mail International\u00ae", "max_weight": 15.994, "name": "FirstClassMailInternational"}, + {"carrier": "usps", "description": "7-21 days", "dimensions": ["Packages (Other + Than Rolls): Combined Length and Girth < 108in", "Rolls (Tubes): Length: min + 4in; max 36 in. Length plus twice the diameter (combined): min 6.75 in; max + 42in.", "Some countries have specific prohibitions and restrictions"], "human_readable": + "First-Class Package International Service\u00ae", "max_weight": 64.0, "name": + "FirstClassPackageInternationalService"}, {"carrier": "usps", "description": + "6-10 business days", "dimensions": ["Combined Length and Girth < 108in"], + "human_readable": "Priority Mail International\u00ae", "max_weight": 1120.0, "name": "PriorityMailInternational"}, {"carrier": "usps", "description": "3-5 business days", "dimensions": ["Combined Length and Girth < 108in"], "human_readable": - null, "max_weight": 1120.0, "name": "ExpressMailInternational"}]}]}' + "Priority Mail Express International\u00ae", "max_weight": 1120.0, "name": + "ExpressMailInternational"}]}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '4706' + - '5074' content-type: - application/json; charset=utf-8 - etag: - - W/"80e36a02624b6fff828d65a412ac9604" expires: - '0' pragma: @@ -101,25 +103,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 37beff0364777761e788ee030018f421 + - 62c1f5da66be5c7be7885e28001703a0 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.028461' + - '0.037176' x-version-label: - - easypost-202305311544-49bde6df69-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_retrieve_estimated_delivery_date.yaml b/tests/cassettes/test_retrieve_estimated_delivery_date.yaml index 2efe99e5..33cb9b10 100644 --- a/tests/cassettes/test_retrieve_estimated_delivery_date.yaml +++ b/tests/cassettes/test_retrieve_estimated_delivery_date.yaml @@ -26,346 +26,93 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-07-09T21:12:46Z", "is_return": false, "messages": - [{"carrier": "DHLExpress", "carrier_account_id": "ca_2b428229ad214147a2ec13c4faf18934", - "type": "rate_error", "message": "Unable to retrieve DHLExpress rates for - US domestic shipments."}, {"carrier": "AustraliaPost", "carrier_account_id": - "ca_3b84ac568d7444759b77d1f2f2c05d7a", "type": "rate_error", "message": "Unable - to retrieve AustraliaPost rates for non-AU origin address."}, {"carrier": - "ParcelForce", "carrier_account_id": "ca_a32ed104ca784c25b25f19d7c28191c3", - "type": "rate_error", "message": "Unable to retrieve ParcelForce rates for - non-GB origin address."}, {"carrier": "Canpar", "carrier_account_id": "ca_32c1bc2cb75e45f19cff9fd047204f6e", - "type": "rate_error", "message": "Unable to retrieve Canpar rates for non-CA - origin shipments."}, {"carrier": "LoomisExpress", "carrier_account_id": "ca_63fb7c3dd56c410085454c5a79bc545f", - "type": "rate_error", "message": "Unable to retrieve LoomisExpress rates for - non-CA origin address."}, {"carrier": "RoyalMail", "carrier_account_id": "ca_f80ce1217c0b4f9b82d566b88dc1a6bd", - "type": "rate_error", "message": "Unable to retrieve RoyalMail rates for non-GB - origin address."}, {"type": "rate_error", "carrier": "OnTrac", "message": - "credentials.account_number: Required"}, {"type": "rate_error", "carrier": - "LSO", "message": "credentials.username: Required"}, {"type": "rate_error", - "carrier": "LSO", "message": "credentials.password: Required"}, {"type": "rate_error", - "carrier": "Purolator", "message": "shipment.from_address.country: All shipments - must originate in Canada (CA)."}, {"type": "rate_error", "carrier": "Purolator", - "message": "shipment.return_address.country: All shipments must originate - in Canada (CA)."}, {"carrier": "CouriersPlease", "carrier_account_id": "ca_6c70860c1edd46c69394beee4e02765f", - "type": "rate_error", "message": "credentials.username: field required and - credentials.password: field required"}, {"carrier": "AmazonMws", "carrier_account_id": - "ca_96d47560a4e748149f7ecc9bbbbe69b4", "type": "rate_error", "message": "shipment.options.fulfiller_order_id: - Required and shipment.options.fulfiller_order_items: Required"}, {"carrier": - "CanadaPost", "carrier_account_id": "ca_c4d49f6f47c94dfcba93f761f79ad2d8", - "type": "rate_error", "message": "[''Unable to get rates for shipments originating - outside of Canada.'']"}, {"carrier": "LaserShipV2", "carrier_account_id": - "ca_6e70924a6c6248c2b73bc7c8949e8849", "type": "rate_error", "message": "shipment.options.dropoff_max_datetime: - field required"}, {"carrier": "LaserShip", "carrier_account_id": "ca_6d2f96c3dfce4c75bd13ee030410ae4d", - "type": "rate_error", "message": "No rates found. The shipment may be outside - of the service area, or you may need to provide your sort codes and rates - to EasyPost."}, {"carrier": "Veho", "carrier_account_id": "ca_e683eaf9405643a8823ef18b4e5f3742", - "type": "rate_error", "message": "shipment.to_address.zip: Can only ship/pickup - within Denver, Dallas-Fort Worth, or Chicago."}, {"carrier": "CourierExpress", - "carrier_account_id": "ca_f18d04c61d2546a68d7cd171960cb0b8", "type": "rate_error", - "message": "shipment.to_address: Courier Express only services the following - states: [''AL'', ''FL'', ''GA'', ''KY'', ''MS'', ''NC'', ''SC'', ''TN'', ''VA'']."}, - {"carrier": "ColumbusLastMile", "carrier_account_id": "ca_a4524802c56348d1a274f879bbaf8f78", - "type": "rate_error", "message": "Not a valid destination postal code"}, {"carrier": - "Estafeta", "carrier_account_id": "ca_38a0fca99c294d4d9d789b3a4b660a4b", "type": - "rate_error", "message": "shipment.from_address.street1: street1 must have - the format '' '', shipment.from_address.street2: - street2 must have the format ''[] Col. '', shipment.from_address.country: Only domestic shipments are supported - for Estafeta, shipment.to_address.street1: street1 must have the format '' '', shipment.to_address.street2: field - required, and shipment.to_address.country: Only domestic shipments are supported - for Estafeta"}, {"carrier": "UPS", "carrier_account_id": "ca_10677005f7e444c299088666025e3cdc", - "type": "rate_error", "message": "Invalid Credentials. Ups Account Number - is required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0b612c9b7014401b9989db19953a24f9", - "type": "rate_error", "message": "credentials.pickup_id: value is not a valid - integer"}, {"type": "rate_error", "carrier": "GSO", "message": "the carrier - rejected the request as invalid"}, {"carrier": "Newgistics", "carrier_account_id": - "ca_3a1b3046cb7943898bea6428237e1e33", "type": "rate_error", "message": "No - rates found. The shipment may be outside of the service area, or you may need - to provide your rates to support."}, {"carrier": "AxlehireV3", "carrier_account_id": - "ca_a381c1bace794c158d59a58b0a94a2e2", "type": "rate_error", "message": "Forbidden. - Please check credentials and try again"}, {"carrier": "UPS", "carrier_account_id": - "ca_db930d5251ee4d2d8560a477b3bb1796", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DHLeCommerce", "carrier_account_id": - "ca_bc906eccfedc4e46952feacf2d69d3dc", "type": "rate_error", "message": "the - carrier rejected the request as invalid"}, {"carrier": "FedExSmartPost", "carrier_account_id": - "ca_7d73446c9ded4b8fa67dee03f9f379b6", "type": "rate_error", "message": "FedEx - returned error: Authentication Failed"}, {"carrier": "DPDUK", "carrier_account_id": - "ca_fd242ecb9ce74e6ea771f25b800055b1", "type": "rate_error", "message": "Unauthorized"}, - {"carrier": "OmniParcel", "carrier_account_id": "ca_2c5768cc85c5420cba30b3b1dd545fbb", - "type": "rate_error", "message": "No rates available."}], "mode": "production", + string: '{"created_at": "2024-08-15T19:54:16Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-07-09T21:12:50Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_fd4f3f1d3e3711efbd243cecef1b359e", - "object": "Address", "created_at": "2024-07-09T21:12:46+00:00", "updated_at": - "2024-07-09T21:12:46+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2024-08-15T19:54:16Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_26dcb71a5b4011ef800bac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:54:15+00:00", "updated_at": + "2024-08-15T19:54:15+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "production", "carrier_facility": null, "residential": null, "federal_tax_id": + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_2d03f3027b1047ffbf47420ae2575344", "object": - "Parcel", "created_at": "2024-07-09T21:12:46Z", "updated_at": "2024-07-09T21:12:46Z", + null, "parcel": {"id": "prcl_fb01a644466a4afd8244cf07f2a22533", "object": + "Parcel", "created_at": "2024-08-15T19:54:15Z", "updated_at": "2024-08-15T19:54:15Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "production"}, "postage_label": null, "rates": [{"id": "rate_ba5762bf0ea04dc6bb716301630d06cb", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "Priority", "carrier": "UPSMailInnovations", - "rate": "0.01", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": - null, "est_delivery_days": null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_942b62c9d6ea45578a344b365d7aa062"}, {"id": "rate_84bb9cf461084033ace344a1347f740f", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "ExpeditedMailInnovations", "carrier": "UPSMailInnovations", - "rate": "0.01", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": null, - "est_delivery_days": 3, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_942b62c9d6ea45578a344b365d7aa062"}, {"id": "rate_5d31010a6be340e78db7fdbf72c46f61", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DPD10:00", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_9a52fb4c641e4753bdfb08e5dd0c40ae", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DPD12:00", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_1633e0e299b7446099bfd6a2b3e18a54", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DPD18:00", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_79deb10aee744ecdb2baf96aed0f606b", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DPD8:30", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_344b50e92a3d4bd98cc52c9952ea8b8d", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DPDCLASSIC", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_6a11ea4ac9764eb49825b3cd39b6314d", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DPDEXPRESS", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_8bd6ecea78854136851a8a644e21274f", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DPDINTERNATIONALMAIL", "carrier": "DPD", - "rate": "0.01", "currency": "EUR", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": - null, "est_delivery_days": null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_9fd0885297924bf2b26dbe7daf7feba1", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DPDPARCELLETTER", "carrier": "DPD", "rate": - "0.01", "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_2a79544c415c4d00a1af2a96a72df878", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DPDPARCELLETTERPLUS", "carrier": "DPD", - "rate": "0.01", "currency": "EUR", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": - null, "est_delivery_days": null, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_1d7bd3576e1344a3848510ff9a18a101", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "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_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_dccbd26d62cc4d0ca639684bab520e4d", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "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_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_f82d3cf02557475bb24077c59da86306", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "First", "carrier": "USPS", "rate": "5.93", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6ba4058596ba464998c219231835809b", + "object": "Rate", "created_at": "2024-08-15T19:54:16Z", "updated_at": "2024-08-15T19:54: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_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_3186cac8184f471bb480031dc1f3d91f", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "ParcelSelect", "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_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_e50d56d7c99b4dc891cdc7f734b51518", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "Express", "carrier": "USPS", "rate": "33.10", + 3, "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_650c70ec766344eeb228417a7dfab3c6", + "object": "Rate", "created_at": "2024-08-15T19:54:16Z", "updated_at": "2024-08-15T19:54:16Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c1486fc79edd4cd2a047c110034f8cd2", + "object": "Rate", "created_at": "2024-08-15T19:54:16Z", "updated_at": "2024-08-15T19:54:16Z", + "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_29740ab2a50d45f2be97c7bae93d6852", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_a9f2e062cda94213bc8376da3b799e5b", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DHLParcelExpedited", "carrier": "DhlEcs", - "rate": "6.63", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": 5, "delivery_date": "2024-07-15T00:00:00Z", "delivery_date_guaranteed": - false, "est_delivery_days": 5, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_77415c3fbd754d65bb9298e9a69d7084"}, {"id": "rate_56bbfa74195f4ab18ca2c8166907e0c2", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "DHLParcelGround", "carrier": "DhlEcs", "rate": - "6.50", "currency": "USD", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": 6, - "delivery_date": "2024-07-15T00:00:00Z", "delivery_date_guaranteed": false, - "est_delivery_days": 6, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_77415c3fbd754d65bb9298e9a69d7084"}, {"id": "rate_03eb6ee92bad42389f1764087abef25a", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "FIRST_OVERNIGHT", "carrier": "FedEx", "rate": - "144.42", "currency": "USD", "retail_rate": null, "retail_currency": null, - "list_rate": "144.42", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 1, "delivery_date": "2024-07-10T08:30:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 1, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_9ef05b4ccc984e29941df09487cfdf4f", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "PRIORITY_OVERNIGHT", "carrier": "FedEx", - "rate": "108.07", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": "108.07", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 1, "delivery_date": "2024-07-10T10:30:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 1, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_c83e4f1b89cb49d8b8d332763b566436", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "STANDARD_OVERNIGHT", "carrier": "FedEx", - "rate": "98.79", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": "98.79", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 1, "delivery_date": "2024-07-10T17:00:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 1, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_1325891633c24c4793c68d75ca95d357", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "FEDEX_2_DAY_AM", "carrier": "FedEx", "rate": - "39.63", "currency": "USD", "retail_rate": null, "retail_currency": null, - "list_rate": "39.63", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T10:30:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 2, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_84783b3078f9409185933d6d875eddb5", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "FEDEX_2_DAY", "carrier": "FedEx", "rate": - "33.39", "currency": "USD", "retail_rate": null, "retail_currency": null, - "list_rate": "33.39", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T17:00:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 2, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_b42d417795ab40a4ab236ab3c84a852d", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "FEDEX_GROUND", "carrier": "FedEx", "rate": - "14.47", "currency": "USD", "retail_rate": null, "retail_currency": null, - "list_rate": "16.67", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T23:59:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 2, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_004a106ea5f843758726f60efe2e53d5", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "FEDEX_EXPRESS_SAVER", "carrier": "FedEx", - "rate": "30.32", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": "30.32", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 3, "delivery_date": "2024-07-12T17:00:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 3, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_22350a8640904c209d922092328f37d0", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "NextDayAir", "carrier": "UPS", "rate": "89.07", - "currency": "USD", "retail_rate": "89.07", "retail_currency": "USD", "list_rate": - "102.19", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 1, "delivery_date": "2024-07-10T10:30:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 1, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_c7a1a85bbc5e404ca1fd25cc016140b5", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "2ndDayAir", "carrier": "UPS", "rate": "29.64", - "currency": "USD", "retail_rate": "29.64", "retail_currency": "USD", "list_rate": - "31.84", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T23:00:00Z", "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_31bbe38959144adc9fa413edb95a3f89", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "Ground", "carrier": "UPS", "rate": "14.88", - "currency": "USD", "retail_rate": "14.88", "retail_currency": "USD", "list_rate": - "15.85", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T23:00:00Z", "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_665b60c99e6b497999c041ffc56ef77b", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "3DaySelect", "carrier": "UPS", "rate": "22.60", - "currency": "USD", "retail_rate": "22.60", "retail_currency": "USD", "list_rate": - "25.10", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 3, "delivery_date": "2024-07-12T23:00:00Z", "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_7eb346c3de754d30969679dda6fb7baf", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "NextDayAirSaver", "carrier": "UPS", "rate": - "83.84", "currency": "USD", "retail_rate": "83.84", "retail_currency": "USD", - "list_rate": "93.40", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 1, "delivery_date": "2024-07-10T23:00:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 1, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_fca3e79823304153b68a3cbaec5b6a4f", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "NextDayAirEarlyAM", "carrier": "UPS", "rate": - "124.09", "currency": "USD", "retail_rate": "124.09", "retail_currency": "USD", - "list_rate": "137.22", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 1, "delivery_date": "2024-07-10T08:00:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 1, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_35d8410979014ded951649449d6f856a", - "object": "Rate", "created_at": "2024-07-09T21:12:50Z", "updated_at": "2024-07-09T21:12:50Z", - "mode": "production", "service": "2ndDayAirAM", "carrier": "UPS", "rate": - "33.57", "currency": "USD", "retail_rate": "33.57", "retail_currency": "USD", - "list_rate": "35.84", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T10:30:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 2, "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}], "refund_status": - null, "scan_form": null, "selected_rate": null, "tracker": null, "to_address": - {"id": "adr_fd4a8fa23e3711ef82cfac1f6bc539aa", "object": "Address", "created_at": - "2024-07-09T21:12:46+00:00", "updated_at": "2024-07-09T21:12:46+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "production", "carrier_facility": + 2, "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_26da02725b4011ef910bac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:54:15+00:00", "updated_at": + "2024-08-15T19:54:15+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_26dcb71a5b4011ef800bac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:54:15+00:00", "updated_at": "2024-08-15T19:54:15+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_fd4f3f1d3e3711efbd243cecef1b359e", - "object": "Address", "created_at": "2024-07-09T21:12:46+00:00", "updated_at": - "2024-07-09T21:12:46+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "production", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_fd4a8fa23e3711ef82cfac1f6bc539aa", "object": "Address", "created_at": - "2024-07-09T21:12:46+00:00", "updated_at": "2024-07-09T21:12:46+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + {}}, "buyer_address": {"id": "adr_26da02725b4011ef910bac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:54:15+00:00", "updated_at": "2024-08-15T19:54:15+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "production", "carrier_facility": + "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_29740ab2a50d45f2be97c7bae93d6852", + {}}, "forms": [], "fees": [], "id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '25921' + - '5804' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_29740ab2a50d45f2be97c7bae93d6852 + - /api/v2/shipments/shp_bba7c1f23e4e40c7994b822bea6427bd pragma: - no-cache referrer-policy: @@ -381,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 1f7ff67a668da7cee2b9901200294bc0 + - 62c1f5d866be5ce7e788626800176eca x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb2nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '4.074006' + - '0.996628' x-version-label: - - easypost-202407092027-324ee50b5a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -414,338 +161,44 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_29740ab2a50d45f2be97c7bae93d6852/smartrate/delivery_date?planned_ship_date=2024-07-11 + uri: https://api.easypost.com/v2/shipments/shp_bba7c1f23e4e40c7994b822bea6427bd/smartrate/delivery_date?planned_ship_date=2024-08-15 response: body: string: '{"rates": [{"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": - 4, "percentile_75": 4, "percentile_85": 5, "percentile_90": 5, "percentile_95": - 6, "percentile_97": 6, "percentile_99": 7}, "easypost_estimated_delivery_date": - "2024-07-15", "planned_ship_date": "2024-07-11"}, "rate": {"carrier": "UPSMailInnovations", - "carrier_account_id": "ca_942b62c9d6ea45578a344b365d7aa062", "created_at": - "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": null, "est_delivery_days": null, "id": "rate_ba5762bf0ea04dc6bb716301630d06cb", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "Priority", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": - "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 4, "percentile_75": 5, "percentile_85": 5, "percentile_90": - 6, "percentile_95": 6, "percentile_97": 7, "percentile_99": 8}, "easypost_estimated_delivery_date": - "2024-07-15", "planned_ship_date": "2024-07-11"}, "rate": {"carrier": "UPSMailInnovations", - "carrier_account_id": "ca_942b62c9d6ea45578a344b365d7aa062", "created_at": - "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_84bb9cf461084033ace344a1347f740f", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "ExpeditedMailInnovations", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPD10:00 combination is not supported by - the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:12:50Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_5d31010a6be340e78db7fdbf72c46f61", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPD10:00", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": - "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": {"error": "Carrier - DPD and service DPD12:00 combination is not supported by the Easypost Smartrate - AI"}, "rate": {"carrier": "DPD", "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", - "created_at": "2024-07-09T21:12:50Z", "currency": "EUR", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_9a52fb4c641e4753bdfb08e5dd0c40ae", "list_currency": null, - "list_rate": null, "mode": "production", "object": "Rate", "rate": 0.01, "retail_currency": - null, "retail_rate": null, "service": "DPD12:00", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPD18:00 combination is not supported by - the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:12:50Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_1633e0e299b7446099bfd6a2b3e18a54", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPD18:00", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": - "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": {"error": "Carrier - DPD and service DPD8:30 combination is not supported by the Easypost Smartrate - AI"}, "rate": {"carrier": "DPD", "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", - "created_at": "2024-07-09T21:12:50Z", "currency": "EUR", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_79deb10aee744ecdb2baf96aed0f606b", "list_currency": null, - "list_rate": null, "mode": "production", "object": "Rate", "rate": 0.01, "retail_currency": - null, "retail_rate": null, "service": "DPD8:30", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPDCLASSIC combination is not supported - by the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:12:50Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_344b50e92a3d4bd98cc52c9952ea8b8d", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPDCLASSIC", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": - "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": {"error": "Carrier - DPD and service DPDEXPRESS combination is not supported by the Easypost Smartrate - AI"}, "rate": {"carrier": "DPD", "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", - "created_at": "2024-07-09T21:12:50Z", "currency": "EUR", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_6a11ea4ac9764eb49825b3cd39b6314d", "list_currency": null, - "list_rate": null, "mode": "production", "object": "Rate", "rate": 0.01, "retail_currency": - null, "retail_rate": null, "service": "DPDEXPRESS", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPDINTERNATIONALMAIL combination is not - supported by the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:12:50Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_8bd6ecea78854136851a8a644e21274f", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPDINTERNATIONALMAIL", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPDPARCELLETTER combination is not supported - by the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:12:50Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_9fd0885297924bf2b26dbe7daf7feba1", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPDPARCELLETTER", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPDPARCELLETTERPLUS combination is not - supported by the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:12:50Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_2a79544c415c4d00a1af2a96a72df878", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPDPARCELLETTERPLUS", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 7}, "easypost_estimated_delivery_date": "2024-07-15", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_4fcd9a658b494a979793bb899a40c5b5", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_1d7bd3576e1344a3848510ff9a18a101", "list_currency": "USD", - "list_rate": 8.25, "mode": "production", "object": "Rate", "rate": 6.9, "retail_currency": - "USD", "retail_rate": 9.8, "service": "Priority", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 8}, "easypost_estimated_delivery_date": "2024-07-15", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_4fcd9a658b494a979793bb899a40c5b5", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_dccbd26d62cc4d0ca639684bab520e4d", "list_currency": "USD", - "list_rate": 6.4, "mode": "production", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 8}, "easypost_estimated_delivery_date": "2024-07-15", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_4fcd9a658b494a979793bb899a40c5b5", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_f82d3cf02557475bb24077c59da86306", "list_currency": "USD", - "list_rate": 6.4, "mode": "production", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.45, "service": "First", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 8}, "easypost_estimated_delivery_date": "2024-07-15", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_4fcd9a658b494a979793bb899a40c5b5", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_3186cac8184f471bb480031dc1f3d91f", "list_currency": "USD", - "list_rate": 6.4, "mode": "production", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.45, "service": "ParcelSelect", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 4, "percentile_97": 5, "percentile_99": - 6}, "easypost_estimated_delivery_date": "2024-07-12", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_4fcd9a658b494a979793bb899a40c5b5", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_e50d56d7c99b4dc891cdc7f734b51518", "list_currency": "USD", - "list_rate": 33.1, "mode": "production", "object": "Rate", "rate": 33.1, "retail_currency": - "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 5, "percentile_90": 5, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 7}, "easypost_estimated_delivery_date": "2024-07-15", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "DhlEcs", "carrier_account_id": "ca_77415c3fbd754d65bb9298e9a69d7084", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - "2024-07-15T00:00:00Z", "delivery_date_guaranteed": false, "delivery_days": - 5, "est_delivery_days": 5, "id": "rate_a9f2e062cda94213bc8376da3b799e5b", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 6.63, "retail_currency": null, "retail_rate": null, "service": - "DHLParcelExpedited", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 5, "percentile_85": - 5, "percentile_90": 5, "percentile_95": 6, "percentile_97": 6, "percentile_99": - 7}, "easypost_estimated_delivery_date": "2024-07-15", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "DhlEcs", "carrier_account_id": "ca_77415c3fbd754d65bb9298e9a69d7084", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - "2024-07-15T00:00:00Z", "delivery_date_guaranteed": false, "delivery_days": - 6, "est_delivery_days": 6, "id": "rate_56bbfa74195f4ab18ca2c8166907e0c2", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 6.5, "retail_currency": null, "retail_rate": null, "service": - "DHLParcelGround", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 1, "percentile_85": - 1, "percentile_90": 1, "percentile_95": 1, "percentile_97": 4, "percentile_99": - 4}, "easypost_estimated_delivery_date": "2024-07-12", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "FedEx", "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - "2024-07-10T08:30:00Z", "delivery_date_guaranteed": true, "delivery_days": - 1, "est_delivery_days": 1, "id": "rate_03eb6ee92bad42389f1764087abef25a", - "list_currency": "USD", "list_rate": 144.42, "mode": "production", "object": - "Rate", "rate": 144.42, "retail_currency": null, "retail_rate": null, "service": - "FIRST_OVERNIGHT", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 1, "percentile_85": - 1, "percentile_90": 1, "percentile_95": 4, "percentile_97": 4, "percentile_99": - 4}, "easypost_estimated_delivery_date": "2024-07-12", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "FedEx", "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - "2024-07-10T10:30:00Z", "delivery_date_guaranteed": true, "delivery_days": - 1, "est_delivery_days": 1, "id": "rate_9ef05b4ccc984e29941df09487cfdf4f", - "list_currency": "USD", "list_rate": 108.07, "mode": "production", "object": - "Rate", "rate": 108.07, "retail_currency": null, "retail_rate": null, "service": - "PRIORITY_OVERNIGHT", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 1, "percentile_85": - 1, "percentile_90": 1, "percentile_95": 4, "percentile_97": 4, "percentile_99": - 4}, "easypost_estimated_delivery_date": "2024-07-12", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "FedEx", "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - "2024-07-10T17:00:00Z", "delivery_date_guaranteed": true, "delivery_days": - 1, "est_delivery_days": 1, "id": "rate_c83e4f1b89cb49d8b8d332763b566436", - "list_currency": "USD", "list_rate": 98.79, "mode": "production", "object": - "Rate", "rate": 98.79, "retail_currency": null, "retail_rate": null, "service": - "STANDARD_OVERNIGHT", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 4, "percentile_97": 4, "percentile_99": - 5}, "easypost_estimated_delivery_date": "2024-07-15", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "FedEx", "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - "2024-07-11T10:30:00Z", "delivery_date_guaranteed": true, "delivery_days": - 2, "est_delivery_days": 2, "id": "rate_1325891633c24c4793c68d75ca95d357", - "list_currency": "USD", "list_rate": 39.63, "mode": "production", "object": - "Rate", "rate": 39.63, "retail_currency": null, "retail_rate": null, "service": - "FEDEX_2_DAY_AM", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": - "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": - 4, "percentile_95": 4, "percentile_97": 4, "percentile_99": 5}, "easypost_estimated_delivery_date": - "2024-07-15", "planned_ship_date": "2024-07-11"}, "rate": {"carrier": "FedEx", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", "created_at": - "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": "2024-07-11T17:00:00Z", - "delivery_date_guaranteed": true, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_84783b3078f9409185933d6d875eddb5", "list_currency": "USD", - "list_rate": 33.39, "mode": "production", "object": "Rate", "rate": 33.39, - "retail_currency": null, "retail_rate": null, "service": "FEDEX_2_DAY", "shipment_id": - "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": "2024-07-09T21:12:50Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, - "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 5, "percentile_99": 5}, "easypost_estimated_delivery_date": - "2024-07-15", "planned_ship_date": "2024-07-11"}, "rate": {"carrier": "FedEx", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", "created_at": - "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": "2024-07-11T23:59:00Z", - "delivery_date_guaranteed": true, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_b42d417795ab40a4ab236ab3c84a852d", "list_currency": "USD", - "list_rate": 16.67, "mode": "production", "object": "Rate", "rate": 14.47, - "retail_currency": null, "retail_rate": null, "service": "FEDEX_GROUND", "shipment_id": - "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": "2024-07-09T21:12:50Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, - "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 5, "percentile_99": 6}, "easypost_estimated_delivery_date": - "2024-07-15", "planned_ship_date": "2024-07-11"}, "rate": {"carrier": "FedEx", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", "created_at": - "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": "2024-07-12T17:00:00Z", - "delivery_date_guaranteed": true, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_004a106ea5f843758726f60efe2e53d5", "list_currency": "USD", - "list_rate": 30.32, "mode": "production", "object": "Rate", "rate": 30.32, - "retail_currency": null, "retail_rate": null, "service": "FEDEX_EXPRESS_SAVER", - "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": "2024-07-09T21:12:50Z"}}, + 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": + 5, "percentile_97": 6, "percentile_99": 8}, "easypost_estimated_delivery_date": + "2024-08-19", "planned_ship_date": "2024-08-15"}, "rate": {"carrier": "USPS", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2024-08-15T19:54:16Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_6ba4058596ba464998c219231835809b", + "list_currency": "USD", "list_rate": 6.4, "mode": "test", "object": "Rate", + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.45, "service": "GroundAdvantage", + "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "updated_at": "2024-08-15T19:54:16Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 1, - "percentile_75": 1, "percentile_85": 1, "percentile_90": 1, "percentile_95": - 4, "percentile_97": 4, "percentile_99": 4}, "easypost_estimated_delivery_date": - "2024-07-12", "planned_ship_date": "2024-07-11"}, "rate": {"carrier": "UPS", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", "created_at": - "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": "2024-07-10T10:30:00Z", - "delivery_date_guaranteed": true, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_22350a8640904c209d922092328f37d0", "list_currency": "USD", - "list_rate": 102.19, "mode": "production", "object": "Rate", "rate": 89.07, - "retail_currency": "USD", "retail_rate": 89.07, "service": "NextDayAir", "shipment_id": - "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": "2024-07-09T21:12:50Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, - "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 4, "percentile_97": 4, "percentile_99": 5}, "easypost_estimated_delivery_date": - "2024-07-15", "planned_ship_date": "2024-07-11"}, "rate": {"carrier": "UPS", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", "created_at": - "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": "2024-07-11T23:00:00Z", - "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_c7a1a85bbc5e404ca1fd25cc016140b5", "list_currency": "USD", - "list_rate": 31.84, "mode": "production", "object": "Rate", "rate": 29.64, - "retail_currency": "USD", "retail_rate": 29.64, "service": "2ndDayAir", "shipment_id": - "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": "2024-07-09T21:12:50Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, - "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 5, "percentile_99": 5}, "easypost_estimated_delivery_date": - "2024-07-15", "planned_ship_date": "2024-07-11"}, "rate": {"carrier": "UPS", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", "created_at": - "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": "2024-07-11T23:00:00Z", - "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_31bbe38959144adc9fa413edb95a3f89", "list_currency": "USD", - "list_rate": 15.85, "mode": "production", "object": "Rate", "rate": 14.88, - "retail_currency": "USD", "retail_rate": 14.88, "service": "Ground", "shipment_id": - "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": "2024-07-09T21:12:50Z"}}, + "percentile_75": 2, "percentile_85": 4, "percentile_90": 4, "percentile_95": + 4, "percentile_97": 5, "percentile_99": 6}, "easypost_estimated_delivery_date": + "2024-08-16", "planned_ship_date": "2024-08-15"}, "rate": {"carrier": "USPS", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2024-08-15T19:54:16Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 1, "est_delivery_days": 1, "id": "rate_650c70ec766344eeb228417a7dfab3c6", + "list_currency": "USD", "list_rate": 33.1, "mode": "test", "object": "Rate", + "rate": 33.1, "retail_currency": "USD", "retail_rate": 37.9, "service": "Express", + "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "updated_at": "2024-08-15T19:54:16Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 5, "percentile_99": 5}, "easypost_estimated_delivery_date": - "2024-07-15", "planned_ship_date": "2024-07-11"}, "rate": {"carrier": "UPS", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", "created_at": - "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": "2024-07-12T23:00:00Z", - "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_665b60c99e6b497999c041ffc56ef77b", "list_currency": "USD", - "list_rate": 25.1, "mode": "production", "object": "Rate", "rate": 22.6, "retail_currency": - "USD", "retail_rate": 22.6, "service": "3DaySelect", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 1, "percentile_85": - 1, "percentile_90": 1, "percentile_95": 4, "percentile_97": 4, "percentile_99": - 4}, "easypost_estimated_delivery_date": "2024-07-12", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "UPS", "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - "2024-07-10T23:00:00Z", "delivery_date_guaranteed": true, "delivery_days": - 1, "est_delivery_days": 1, "id": "rate_7eb346c3de754d30969679dda6fb7baf", - "list_currency": "USD", "list_rate": 93.4, "mode": "production", "object": - "Rate", "rate": 83.84, "retail_currency": "USD", "retail_rate": 83.84, "service": - "NextDayAirSaver", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 1, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 4, "percentile_97": 4, "percentile_99": - 4}, "easypost_estimated_delivery_date": "2024-07-12", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "UPS", "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - "2024-07-10T08:00:00Z", "delivery_date_guaranteed": true, "delivery_days": - 1, "est_delivery_days": 1, "id": "rate_fca3e79823304153b68a3cbaec5b6a4f", - "list_currency": "USD", "list_rate": 137.22, "mode": "production", "object": - "Rate", "rate": 124.09, "retail_currency": "USD", "retail_rate": 124.09, "service": - "NextDayAirEarlyAM", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", - "updated_at": "2024-07-09T21:12:50Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 4, "percentile_97": 4, "percentile_99": - 5}, "easypost_estimated_delivery_date": "2024-07-15", "planned_ship_date": - "2024-07-11"}, "rate": {"carrier": "UPS", "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", - "created_at": "2024-07-09T21:12:50Z", "currency": "USD", "delivery_date": - "2024-07-11T10:30:00Z", "delivery_date_guaranteed": true, "delivery_days": - 2, "est_delivery_days": 2, "id": "rate_35d8410979014ded951649449d6f856a", - "list_currency": "USD", "list_rate": 35.84, "mode": "production", "object": - "Rate", "rate": 33.57, "retail_currency": "USD", "retail_rate": 33.57, "service": - "2ndDayAirAM", "shipment_id": "shp_29740ab2a50d45f2be97c7bae93d6852", "updated_at": - "2024-07-09T21:12:50Z"}}]}' + 5, "percentile_97": 6, "percentile_99": 8}, "easypost_estimated_delivery_date": + "2024-08-19", "planned_ship_date": "2024-08-15"}, "rate": {"carrier": "USPS", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2024-08-15T19:54:16Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_c1486fc79edd4cd2a047c110034f8cd2", + "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", + "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", + "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "updated_at": "2024-08-15T19:54:16Z"}}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '24376' + - '2336' content-type: - application/json; charset=utf-8 expires: @@ -765,20 +218,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 1f7ff67a668da7d2e2b9901200294ecc + - 62c1f5d866be5ce9e788626800176fc4 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb2nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.246798' + - '0.122978' x-version-label: - - easypost-202407092027-324ee50b5a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_scanform_all.yaml b/tests/cassettes/test_scanform_all.yaml index a3df910d..57e653f9 100644 --- a/tests/cassettes/test_scanform_all.yaml +++ b/tests/cassettes/test_scanform_all.yaml @@ -16,34 +16,45 @@ interactions: uri: https://api.easypost.com/v2/scan_forms?page_size=5 response: body: - string: '{"scan_forms": [{"id": "sf_3c5c5b35c1144bfa9c39bd22b52fce2d", "object": - "ScanForm", "created_at": "2023-11-28T22:03:08Z", "updated_at": "2023-11-28T22:03:08Z", - "tracking_codes": ["9400100105442285862681"], "address": {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:07+00:00", "updated_at": - "2023-11-28T22:03:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"scan_forms": [{"id": "sf_096c54c7ff404b06b6bab4b1087f3f52", "object": + "ScanForm", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", + "tracking_codes": ["9400100105807075742053"], "address": {"id": "adr_d3f4ff695b3f11efb7f6ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:51:56+00:00", "updated_at": + "2024-08-15T19:51:56+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8240f3ff9915040b8ad655e32c484d477.pdf", - "form_file_type": null, "batch_id": "batch_5f9ca1835aab47edbd73da98526f75c0", - "confirmation": null}, {"id": "sf_5dc8f81867614bec9b3c7c3278d521c5", "object": - "ScanForm", "created_at": "2023-11-28T22:03:10Z", "updated_at": "2023-11-28T22:03:10Z", - "tracking_codes": ["9400100105442285862766"], "address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": - "2023-11-28T22:03:08+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8bf289055f0394f158ca7c0edb6f5dfbf.pdf", + "form_file_type": null, "batch_id": "batch_180b18530ca245ab824169b73b26ae6f", + "confirmation": null}, {"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": + "ScanForm", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", + "tracking_codes": ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8ef6b7a1c3e7c449fa4374c55428bcfe1.pdf", - "form_file_type": null, "batch_id": "batch_15e72ce6345940cbada8abfaf380f37b", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", + "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", + "confirmation": null}, {"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": + "ScanForm", "created_at": "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", + "tracking_codes": ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", + "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", "confirmation": null}], "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '1845' + - '2751' content-type: - application/json; charset=utf-8 expires: @@ -63,20 +74,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b66566639fe78a978c003e74da + - 62c1f5db66be5ccae788622500175155 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.145189' + - '0.217590' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_scanform_create.yaml b/tests/cassettes/test_scanform_create.yaml index ce2b8102..43847155 100644 --- a/tests/cassettes/test_scanform_create.yaml +++ b/tests/cassettes/test_scanform_create.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:03:07Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:53:43Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285862681", "updated_at": "2023-11-28T22:03:07Z", "batch_id": + "9400100105807075742909", "updated_at": "2024-08-15T19:53:44Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:03:07+00:00", "updated_at": "2023-11-28T22:03:07+00:00", "name": + {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_8ea8d4a879fe4aa594ccc47cab13ae7a", - "object": "Parcel", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fbe8636fe1394ba596759cb9a4f5e9b1", + "object": "Parcel", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6b83022b69f6419db90e7a63eda23e1d", - "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:07Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_83593ba0c4164a459047d79156830108", + "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:44Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:43Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8e7f13c1c311b49399defba60e68b3525.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8bc57675bcf1e4a21a30e657fca4a0ab0.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_cf35b9fa5f8243419e9d99daf91c3e7a", "object": - "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0370cd6af9b7441189ff1425ab0d3849", - "object": "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1c112372e51140a49ae52a64b7e517de", "object": + "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + "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_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1f4c4fe7c2a0450fb23974899bf0d758", - "object": "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", + 2, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dcc1d9b8707048fe8c164460942cb535", + "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9be88ec5a3bf4475a6bc3e3af45f618c", - "object": "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_93e91a08a94641408f8d9ba08ebdab5a", "object": "Rate", "created_at": - "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_9be88ec5a3bf4475a6bc3e3af45f618c", - "object": "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_deab6ef3e7864284ad8e0f5d1b4ef848", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285862681", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:03:07Z", "updated_at": - "2023-11-28T22:03:07Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier": "USPS", + 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_59bf09da112248c194139c8cee72eb94", + "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_dcc1d9b8707048fe8c164460942cb535", "object": + "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + "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_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_48c523996d8f45c6a0b267166aea639a", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742909", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:44Z", + "updated_at": "2024-08-15T19:53:44Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2RlYWI2ZWYzZTc4NjQyODRhZDhlMGY1ZDFiNGVmODQ4"}, - "to_address": {"id": "adr_e91979be8e3911ee88eeac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T22:03:07+00:00", "updated_at": "2023-11-28T22:03:07+00:00", + "https://track.easypost.com/djE6dHJrXzQ4YzUyMzk5NmQ4ZjQ1YzZhMGIyNjcxNjZhZWE2Mzlh"}, + "to_address": {"id": "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:07+00:00", "updated_at": - "2023-11-28T22:03:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_e91979be8e3911ee88eeac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:03:07+00:00", "updated_at": "2023-11-28T22:03:07+00:00", "name": + "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_3b18a7335d8144e8951c37fb8e9a3828", "object": + "refunded": false}], "id": "shp_dce42fde655c4d969c550c16071130c4", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_3b18a7335d8144e8951c37fb8e9a3828 + - /api/v2/shipments/shp_dce42fde655c4d969c550c16071130c4 pragma: - no-cache referrer-policy: @@ -151,27 +138,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b36566639ae78a978a003e6f76 + - 62c1f5dc66be5cc7e788622300174e30 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.024325' + - '1.021694' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"scan_form": {"shipment": [{"id": "shp_3b18a7335d8144e8951c37fb8e9a3828"}]}}' + body: '{"scan_form": {"shipment": [{"id": "shp_dce42fde655c4d969c550c16071130c4"}]}}' headers: Accept: - '*/*' @@ -191,17 +178,17 @@ interactions: uri: https://api.easypost.com/v2/scan_forms response: body: - string: '{"id": "sf_3c5c5b35c1144bfa9c39bd22b52fce2d", "object": "ScanForm", - "created_at": "2023-11-28T22:03:08Z", "updated_at": "2023-11-28T22:03:08Z", - "tracking_codes": ["9400100105442285862681"], "address": {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:07+00:00", "updated_at": - "2023-11-28T22:03:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": "ScanForm", + "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", + "tracking_codes": ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8240f3ff9915040b8ad655e32c484d477.pdf", - "form_file_type": null, "batch_id": "batch_5f9ca1835aab47edbd73da98526f75c0", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", + "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", "confirmation": null}' headers: cache-control: @@ -227,20 +214,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b36566639ce78a978a003e7109 + - 62c1f5dc66be5cc8e788622300174f3f x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.358192' + - '0.286183' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_scanform_get_next_page.yaml b/tests/cassettes/test_scanform_get_next_page.yaml index e84a1fa0..b9021b1a 100644 --- a/tests/cassettes/test_scanform_get_next_page.yaml +++ b/tests/cassettes/test_scanform_get_next_page.yaml @@ -16,34 +16,45 @@ interactions: uri: https://api.easypost.com/v2/scan_forms?page_size=5 response: body: - string: '{"scan_forms": [{"id": "sf_3c5c5b35c1144bfa9c39bd22b52fce2d", "object": - "ScanForm", "created_at": "2023-11-28T22:03:08Z", "updated_at": "2023-11-28T22:03:08Z", - "tracking_codes": ["9400100105442285862681"], "address": {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:07+00:00", "updated_at": - "2023-11-28T22:03:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"scan_forms": [{"id": "sf_096c54c7ff404b06b6bab4b1087f3f52", "object": + "ScanForm", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", + "tracking_codes": ["9400100105807075742053"], "address": {"id": "adr_d3f4ff695b3f11efb7f6ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:51:56+00:00", "updated_at": + "2024-08-15T19:51:56+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8240f3ff9915040b8ad655e32c484d477.pdf", - "form_file_type": null, "batch_id": "batch_5f9ca1835aab47edbd73da98526f75c0", - "confirmation": null}, {"id": "sf_5dc8f81867614bec9b3c7c3278d521c5", "object": - "ScanForm", "created_at": "2023-11-28T22:03:10Z", "updated_at": "2023-11-28T22:03:10Z", - "tracking_codes": ["9400100105442285862766"], "address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": - "2023-11-28T22:03:08+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8bf289055f0394f158ca7c0edb6f5dfbf.pdf", + "form_file_type": null, "batch_id": "batch_180b18530ca245ab824169b73b26ae6f", + "confirmation": null}, {"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": + "ScanForm", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", + "tracking_codes": ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8ef6b7a1c3e7c449fa4374c55428bcfe1.pdf", - "form_file_type": null, "batch_id": "batch_15e72ce6345940cbada8abfaf380f37b", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", + "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", + "confirmation": null}, {"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": + "ScanForm", "created_at": "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", + "tracking_codes": ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", + "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", "confirmation": null}], "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '1845' + - '2751' content-type: - application/json; charset=utf-8 expires: @@ -63,20 +74,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b96566639fe78a978d003e7588 + - 62c1f5db66be5ccbe7886226001751cf x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.053858' + - '0.047345' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_scanform_retrieve.yaml b/tests/cassettes/test_scanform_retrieve.yaml index 4fbe5f23..4e439431 100644 --- a/tests/cassettes/test_scanform_retrieve.yaml +++ b/tests/cassettes/test_scanform_retrieve.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:03:08Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:53:44Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285862766", "updated_at": "2023-11-28T22:03:09Z", "batch_id": + "9400100105807075742923", "updated_at": "2024-08-15T19:53:45Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:03:08+00:00", "updated_at": "2023-11-28T22:03:08+00:00", "name": + {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_48bf017aed174b99baaabac1ef33c392", - "object": "Parcel", "created_at": "2023-11-28T22:03:08Z", "updated_at": "2023-11-28T22:03:08Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_d42002a5124a43348d65dc076d28bd8f", + "object": "Parcel", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_161393c8e85e43f8b8090064263276f3", - "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:09Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_90dbc71ee37c4527a43004bcc4f854c0", + "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:45Z", "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/20231128/e853e39d8d485a49328b0d5a2058a03d24.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8c1d8e98eb0e5413ea193e5c48897179a.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_266a2b59f55c4c249eea34747ca3d85b", "object": - "Rate", "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_066e670ca6864c0f92e9090d9cebe164", "object": + "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "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_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9181631826794a97bbd9a35fffedfd4a", - "object": "Rate", "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", + 2, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_807950a46bbe43a489b7a57b38f488bf", + "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1800001cfb0e4792a89cede0281c6c9c", - "object": "Rate", "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_256dbfd84ea14c41a68ed0cd3418c648", "object": "Rate", "created_at": - "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_3cd2509052804549bcfc6ad64b702271", "object": "Rate", "created_at": - "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_1800001cfb0e4792a89cede0281c6c9c", - "object": "Rate", "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_a4c6e6afbb634ad1a9d1a6728391cc4f", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285862766", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:03:09Z", "updated_at": - "2023-11-28T22:03:09Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier": "USPS", + 3, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_56c61eed5d794978804e403bc5ed49e7", + "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_807950a46bbe43a489b7a57b38f488bf", "object": + "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "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_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4919a90d02f04349a34b4d71f8f8f411", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742923", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:45Z", + "updated_at": "2024-08-15T19:53:45Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2E0YzZlNmFmYmI2MzRhZDFhOWQxYTY3MjgzOTFjYzRm"}, - "to_address": {"id": "adr_ea3eb67c8e3911ee861bac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:03:08+00:00", "updated_at": "2023-11-28T22:03:09+00:00", + "https://track.easypost.com/djE6dHJrXzQ5MTlhOTBkMDJmMDQzNDlhMzRiNGQ3MWY4ZjhmNDEx"}, + "to_address": {"id": "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": - "2023-11-28T22:03:08+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_ea3eb67c8e3911ee861bac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:03:08+00:00", "updated_at": "2023-11-28T22:03:09+00:00", "name": + "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_ee741f4b8f924740a0c5f7266556e64f", "object": + "refunded": false}], "id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_ee741f4b8f924740a0c5f7266556e64f + - /api/v2/shipments/shp_5e6513a2c7d34002be90ade89e5eb95e pragma: - no-cache referrer-policy: @@ -151,27 +138,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b96566639ce78a978b003e7208 + - 62c1f5d966be5cc8e788622400174fc4 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.006833' + - '1.102679' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"scan_form": {"shipment": [{"id": "shp_ee741f4b8f924740a0c5f7266556e64f"}]}}' + body: '{"scan_form": {"shipment": [{"id": "shp_5e6513a2c7d34002be90ade89e5eb95e"}]}}' headers: Accept: - '*/*' @@ -191,17 +178,17 @@ interactions: uri: https://api.easypost.com/v2/scan_forms response: body: - string: '{"id": "sf_5dc8f81867614bec9b3c7c3278d521c5", "object": "ScanForm", - "created_at": "2023-11-28T22:03:10Z", "updated_at": "2023-11-28T22:03:10Z", - "tracking_codes": ["9400100105442285862766"], "address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": - "2023-11-28T22:03:08+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": "ScanForm", + "created_at": "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", + "tracking_codes": ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8ef6b7a1c3e7c449fa4374c55428bcfe1.pdf", - "form_file_type": null, "batch_id": "batch_15e72ce6345940cbada8abfaf380f37b", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", + "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", "confirmation": null}' headers: cache-control: @@ -222,25 +209,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b96566639ee78a978b003e737c + - 62c1f5d966be5ccae7886224001750bd x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.446976' + - '0.309785' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -260,20 +249,20 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/scan_forms/sf_5dc8f81867614bec9b3c7c3278d521c5 + uri: https://api.easypost.com/v2/scan_forms/sf_3a6b244afc324e9292a0d69ce3081fe7 response: body: - string: '{"id": "sf_5dc8f81867614bec9b3c7c3278d521c5", "object": "ScanForm", - "created_at": "2023-11-28T22:03:10Z", "updated_at": "2023-11-28T22:03:10Z", - "tracking_codes": ["9400100105442285862766"], "address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": - "2023-11-28T22:03:08+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": "ScanForm", + "created_at": "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", + "tracking_codes": ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8ef6b7a1c3e7c449fa4374c55428bcfe1.pdf", - "form_file_type": null, "batch_id": "batch_15e72ce6345940cbada8abfaf380f37b", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", + "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", "confirmation": null}' headers: cache-control: @@ -294,25 +283,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b96566639ee78a978b003e744f + - 62c1f5d966be5ccae788622400175119 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.044670' + - '0.083969' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_all.yaml b/tests/cassettes/test_shipment_all.yaml index 316e3ccd..e3fbe1e7 100644 --- a/tests/cassettes/test_shipment_all.yaml +++ b/tests/cassettes/test_shipment_all.yaml @@ -16,117 +16,90 @@ interactions: uri: https://api.easypost.com/v2/shipments?page_size=5 response: body: - string: '{"shipments": [{"created_at": "2023-11-28T22:04:14Z", "is_return": + string: '{"shipments": [{"created_at": "2024-08-15T19:53:44Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", - "tracking_code": "9400100105442285865323", "updated_at": "2023-11-28T22:07:49Z", - "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c14abe119b4b47cca0eaffefa64ec311", - "object": "Parcel", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", + "tracking_code": "9400100105807075742923", "updated_at": "2024-08-15T19:53:46Z", + "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_d42002a5124a43348d65dc076d28bd8f", "object": + "Parcel", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f5482c5ee9694dc2aaf344cd96b84259", - "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:04:14Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_90dbc71ee37c4527a43004bcc4f854c0", + "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:45Z", "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/20231128/e8c8b82e8339f94b608d71b001b7c22082.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8c1d8e98eb0e5413ea193e5c48897179a.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f7fc0d50e1c54a7f94d19d07d83527e2", "object": - "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_066e670ca6864c0f92e9090d9cebe164", "object": + "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "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_389b05acbbff44bfa104ee937676bace", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f1537b73e7b445b86a0a34b139a0bbc", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + 2, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_807950a46bbe43a489b7a57b38f488bf", + "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_389b05acbbff44bfa104ee937676bace", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_252d16804f6a4914990c7927640dc139", "object": "Rate", "created_at": - "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_550711dcaca14d96a311eedb314dbb30", "object": "Rate", "created_at": - "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_f7228e9b353c4d22820956036c86fcc8", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285865323", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:04:15Z", - "updated_at": "2023-11-28T22:07:15Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-11-28T22:07:15Z", "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", + 3, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_56c61eed5d794978804e403bc5ed49e7", + "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + {"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": "ScanForm", "created_at": + "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", "tracking_codes": + ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", + "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", + "confirmation": null}, "selected_rate": {"id": "rate_807950a46bbe43a489b7a57b38f488bf", + "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "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_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4919a90d02f04349a34b4d71f8f8f411", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742923", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:46Z", + "updated_at": "2024-08-15T19:53:46Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:46Z", "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:07:15Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:46Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:44:15Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:46Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-29T20:49:15Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-30T22:25:15Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2023-10-31T01:16:15Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:56:15Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:06:15Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:58:15Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:58:15Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2Y3MjI4ZTliMzUzYzRkMjI4MjA5NTYwMzZjODZmY2M4"}, - "to_address": {"id": "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", + {"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/djE6dHJrXzQ5MTlhOTBkMDJmMDQzNDlhMzRiNGQ3MWY4ZjhmNDEx"}, + "to_address": {"id": "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -134,15 +107,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": - "2023-11-28T22:04:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", "name": + "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -152,267 +125,189 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_389b05acbbff44bfa104ee937676bace", "object": - "Shipment"}, {"created_at": "2023-11-28T22:03:47Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100105442285864357", "updated_at": "2023-11-28T22:07:56Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_010914128e3a11ee9588ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:47+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7c35fa7769554f47a95634acda4077f8", - "object": "Parcel", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "refunded": false}], "id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:43Z", "is_return": false, "messages": + [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742909", "updated_at": "2024-08-15T19:53:44Z", "batch_id": + "batch_18fedb84574b4787a77b7f6a3db400ce", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_fbe8636fe1394ba596759cb9a4f5e9b1", "object": + "Parcel", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_45b959020cec4c9382ea8582011ca45a", - "created_at": "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:03:48Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:48Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_83593ba0c4164a459047d79156830108", + "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:44Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:43Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8f508ea72234845a19614dc7b80747ec6.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8bc57675bcf1e4a21a30e657fca4a0ab0.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_d10fdd17bcc24102ba1a58b072850c64", "object": - "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8bdd5c31c7034669b0980cb1811a90b7", - "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1c112372e51140a49ae52a64b7e517de", "object": + "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + "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_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c56f73ba16274416bc45a3f3f07c2729", - "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + 2, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dcc1d9b8707048fe8c164460942cb535", + "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_63f66147f39d4a4ea83538d74e47d427", - "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7d0a166002ba410686b84e853c434f8d", "object": "Rate", "created_at": - "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_c56f73ba16274416bc45a3f3f07c2729", - "object": "Rate", "created_at": "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:03:48Z", + 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_59bf09da112248c194139c8cee72eb94", + "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + {"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": "ScanForm", "created_at": + "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", "tracking_codes": + ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", + "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", + "confirmation": null}, "selected_rate": {"id": "rate_dcc1d9b8707048fe8c164460942cb535", + "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e91af09aa32d41f3ada2c0e30df3c4f0", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285864357", - "status": "delivered", "status_detail": "arrived_at_destination", "created_at": - "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:06:49Z", "signed_by": - "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:49Z", - "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier": "USPS", - "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment - Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-28T22:06:49Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": - null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-29T10:43:49Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", - "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", - "message": "Arrived at USPS Origin Facility", "description": "", "status": - "in_transit", "status_detail": "arrived_at_facility", "datetime": "2023-10-29T20:48:49Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, - {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-30T22:24:49Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": - null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at - Post Office", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-31T01:15:49Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:49Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:49Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:49Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_48c523996d8f45c6a0b267166aea639a", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742909", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:44Z", + "updated_at": "2024-08-15T19:53:44Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:44Z", "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:44Z", "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-07-16T08:30:44Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:49Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2U5MWFmMDlhYTMyZDQxZjNhZGEyYzBlMzBkZjNjNGYw"}, - "to_address": {"id": "adr_01063a4a8e3a11ee9586ac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:48+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_010914128e3a11ee9588ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:47+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_01063a4a8e3a11ee9586ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:48+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + {"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/djE6dHJrXzQ4YzUyMzk5NmQ4ZjQ1YzZhMGIyNjcxNjZhZWE2Mzlh"}, + "to_address": {"id": "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", + "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", + "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "country": "US", "phone": "", "email": "", "mode": "test", + "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": + null, "verifications": {"zip4": {"success": true, "errors": [], "details": + null}, "delivery": {"success": true, "errors": [], "details": {"latitude": + 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, + "usps_zone": 4, "return_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", "name": + "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": + null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": - [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": - true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_ad5656f792d74fe2862fe497c75c1eb5", - "object": "Shipment"}, {"created_at": "2023-11-28T22:03:45Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", - "tracking_code": "9400100105442285864272", "updated_at": "2023-11-28T22:08:03Z", - "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_000c6eb58e3a11ee94ffac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": + {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": + true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, + "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", + "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_dce42fde655c4d969c550c16071130c4", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:38Z", "is_return": false, "messages": + [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742886", "updated_at": "2024-08-15T19:53:39Z", "batch_id": + null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": + {"id": "adr_108166455b4011efb6f1ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_5180a2c1a65848329e6508142539ca9d", - "object": "Parcel", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_642d11e9fb434aa998e00ad920aff76b", + "object": "Parcel", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_5dc65162838f41ae87512e6502ecf8bb", - "created_at": "2023-11-28T22:03:46Z", "updated_at": "2023-11-28T22:03:46Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:46Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_49a1063a6a4d4e369e0c0010e8106f2f", + "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:39Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53: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/20231128/e8eca41f0a3e5743d7af07c30f4b27d774.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86d824b1d760044a785ef93f8690c3a26.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f5688ca555764090a241d1d727ede196", "object": - "Rate", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", + null}, "rates": [{"id": "rate_391276f050354b6fa00b8244b10cee20", "object": + "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_20891227b5fb432fa0ac80ac0bba6cb5", + "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "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_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f0b282224c94e72bd212ef227f12169", + "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_acee1b00d2ad4d4ab90867200fefc534", - "object": "Rate", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e8b77d984d3a4221868fab95ca984af5", "object": "Rate", "created_at": - "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_1d09e97dd8894ba6bf7fca2299639a12", "object": "Rate", "created_at": - "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e3eab61c56b3487c875fccb3e4f3f7aa", "object": "Rate", "created_at": - "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_acee1b00d2ad4d4ab90867200fefc534", - "object": "Rate", "created_at": "2023-11-28T22:03:46Z", "updated_at": "2023-11-28T22:03:46Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_32eeddfa17d44033961783d1b52f5790", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285864272", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:46Z", - "updated_at": "2023-11-28T22:06:46Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-11-28T22:06:46Z", "shipment_id": "shp_00f27ebd8cef472d9cd32faddbc7f445", + 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": "submitted", "scan_form": + null, "selected_rate": {"id": "rate_3f0b282224c94e72bd212ef227f12169", "object": + "Rate", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", + "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_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742886", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:39Z", + "updated_at": "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:39Z", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:06:46Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:39Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:43:46Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:39Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-29T20:48:46Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-30T22:24:46Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2023-10-31T01:15:46Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:46Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:46Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:46Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:46Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzMyZWVkZGZhMTdkNDQwMzM5NjE3ODNkMWI1MmY1Nzkw"}, - "to_address": {"id": "adr_000a6db08e3a11ee89b63cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+00:00", + {"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/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, + "to_address": {"id": "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -420,15 +315,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_000c6eb58e3a11ee94ffac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T22:03:45+00:00", "updated_at": - "2023-11-28T22:03:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_108166455b4011efb6f1ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:38+00:00", "updated_at": + "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_000a6db08e3a11ee89b63cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+00:00", "name": + "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -438,118 +333,80 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_00f27ebd8cef472d9cd32faddbc7f445", "object": - "Shipment"}, {"created_at": "2023-11-28T22:03:43Z", "is_return": false, "messages": + "refunded": false}], "id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:28Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100105442285864203", "updated_at": "2023-11-28T22:08:25Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_ff0756f38e3911ee9e62ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:43+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_2e49adf3e35b46c48725a6ae20197f38", - "object": "Parcel", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742763", "updated_at": "2024-08-15T19:53:29Z", "batch_id": + "batch_0e51f71c3821431d96a77aa333ac05a3", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_0a6ff5b25b4011ef9591ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:28+00:00", "updated_at": + "2024-08-15T19:53:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_485cf941942d4862967425c0543caa7c", "object": + "Parcel", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ac700070142c425aafad1497b357d4d0", - "created_at": "2023-11-28T22:03:44Z", "updated_at": "2023-11-28T22:03:44Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:44Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_767f256490c44ea6bbc52191a19791e1", + "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:29Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53: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/20231128/e8fce3cc3313264a158f9ca2b86bca1e9b.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8aa8c3f4aa4bb4a5fa3744ba0a97f5e98.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_c7a5afeb9df745f2847d2f92918e9c9a", "object": - "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a14e357b0cbb4203b1d4d2d448804ab6", - "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_a0ffc385a8224b4593b4b168ee624c0e", "object": + "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53: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_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81c91d416993451991803e544bf4a5d9", - "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + 2, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c6cec8860db147caae7c732ae4d7ce78", + "object": "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bc8c2bfec1bb47cd9ba910ecaf9274a2", - "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_233ffa51537f4c05bb9ff89be0477aa6", "object": "Rate", "created_at": - "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_bc8c2bfec1bb47cd9ba910ecaf9274a2", - "object": "Rate", "created_at": "2023-11-28T22:03:44Z", "updated_at": "2023-11-28T22:03:44Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_416f71cd090045c0a6590a8b6c4845b0", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285864203", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:44Z", - "updated_at": "2023-11-28T22:06:45Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-11-28T22:06:45Z", "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", + 3, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a0baddeb6aa84f4e8b3cf41cbf81a4fd", + "object": "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_c6cec8860db147caae7c732ae4d7ce78", "object": + "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53: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_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_24fa66d76fe344e4b291a4df3ca5e2b7", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742763", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:29Z", + "updated_at": "2024-08-15T19:53:29Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:29Z", "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:06:45Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:29Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:43:45Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:29Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-29T20:48:45Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-30T22:24:45Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2023-10-31T01:15:45Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:45Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:45Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:45Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:45Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzQxNmY3MWNkMDkwMDQ1YzBhNjU5MGE4YjZjNDg0NWIw"}, - "to_address": {"id": "adr_ff04cc778e3911ee9e61ac1f6bc539ae", "object": "Address", - "created_at": "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:44+00:00", + {"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/djE6dHJrXzI0ZmE2NmQ3NmZlMzQ0ZTRiMjkxYTRkZjNjYTVlMmI3"}, + "to_address": {"id": "adr_0a6d29265b4011efb480ac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:53:28+00:00", "updated_at": "2024-08-15T19:53:28+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -557,15 +414,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_ff0756f38e3911ee9e62ac1f6bc539ae", - "object": "Address", "created_at": "2023-11-28T22:03:43+00:00", "updated_at": - "2023-11-28T22:03:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_0a6ff5b25b4011ef9591ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:28+00:00", "updated_at": + "2024-08-15T19:53:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_ff04cc778e3911ee9e61ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:44+00:00", "name": + "adr_0a6d29265b4011efb480ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:28+00:00", "updated_at": "2024-08-15T19:53:28+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -575,162 +432,112 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "object": - "Shipment"}, {"created_at": "2023-11-28T22:03:41Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100105442285864142", "updated_at": "2023-11-28T22:08:41Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_fdc32ad38e3911ee9351ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:41+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fb734727e45d4b77bc13c3fc1030c723", - "object": "Parcel", "created_at": "2023-11-28T22:03:41Z", "updated_at": "2023-11-28T22:03:41Z", + "refunded": false}], "id": "shp_9af00c32bcff44ea856d808545496d05", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:26Z", "is_return": false, "messages": + [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742756", "updated_at": "2024-08-15T19:53:27Z", "batch_id": + "batch_9b8905ead5a44f50bef9aa9902c4bff6", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_0942f3e35b4011efb3ddac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:26+00:00", "updated_at": + "2024-08-15T19:53:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_955cf25ac94d42faafbecfbbb04c8f31", "object": + "Parcel", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2fe5e816594b43218703f77389572490", - "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:42Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e10efa9d02884ecf9fcd62a94618043e", + "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:27Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:26Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e85a55642621d44e798cbb97b6d0af8f5d.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8eed2a1c6b0a843de89b7507b704cc11d.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_ce2e6e834db243d380d656f90837d4e3", "object": - "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_09878437b69843098947ee0768c18997", "object": + "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_048a5125c43b4fc2b2acfd48e3f1ef63", + "object": "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", + "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_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8931502ae8114e968453808984c31074", - "object": "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", + 2, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_416b4b8d011b423cbd8bb5ab3226c067", + "object": "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f2d5681a865e4a1ebeeb1990012d7abe", - "object": "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_bcf67383de3843e69ef42cb3a498506e", "object": "Rate", "created_at": - "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_757766f725db4db1917319b3abe867a1", "object": "Rate", "created_at": - "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_8931502ae8114e968453808984c31074", - "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + 3, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_416b4b8d011b423cbd8bb5ab3226c067", "object": + "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_5f3a0e7cfb304d7f9cd4a1d1952aa200", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285864142", - "status": "delivered", "status_detail": "arrived_at_destination", "created_at": - "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:06:43Z", "signed_by": - "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:43Z", - "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier": "USPS", - "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment - Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-28T22:06:43Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": - null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-29T10:43:43Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", - "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", - "message": "Arrived at USPS Origin Facility", "description": "", "status": - "in_transit", "status_detail": "arrived_at_facility", "datetime": "2023-10-29T20:48:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, - {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-30T22:24:43Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": - null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at - Post Office", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-31T01:15:43Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + 3, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b85437e1f5e440a6b1e16577dd1e0ece", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742756", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:27Z", + "updated_at": "2024-08-15T19:53:27Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:27Z", "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:27Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:30:27Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:43Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzVmM2EwZTdjZmIzMDRkN2Y5Y2Q0YTFkMTk1MmFhMjAw"}, - "to_address": {"id": "adr_fdc041eb8e3911ee934fac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:42+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_fdc32ad38e3911ee9351ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:41+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_fdc041eb8e3911ee934fac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:42+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + {"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/djE6dHJrX2I4NTQzN2UxZjVlNDQwYTZiMWUxNjU3N2RkMWUwZWNl"}, + "to_address": {"id": "adr_094021ea5b4011efb3daac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:53:26+00:00", "updated_at": "2024-08-15T19:53:26+00:00", + "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", + "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "country": "US", "phone": "", "email": "", "mode": "test", + "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": + null, "verifications": {"zip4": {"success": true, "errors": [], "details": + null}, "delivery": {"success": true, "errors": [], "details": {"latitude": + 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, + "usps_zone": 4, "return_address": {"id": "adr_0942f3e35b4011efb3ddac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:26+00:00", "updated_at": + "2024-08-15T19:53:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_094021ea5b4011efb3daac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:26+00:00", "updated_at": "2024-08-15T19:53:26+00:00", "name": + "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": + null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": - [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": - true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_9deca390f9a3470cb1c3062b004527c0", - "object": "Shipment"}], "has_more": true}' + null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": + {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": + true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, + "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", + "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_3b55322d17fe4cc09c36c663a54127bc", "object": + "Shipment"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '55484' + - '39979' content-type: - application/json; charset=utf-8 expires: @@ -750,20 +557,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8d656664f1e78a9c6d003f5c4d + - 62c1f5db66be5ccde78862290017544f x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.524884' + - '0.514689' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_buy.yaml b/tests/cassettes/test_shipment_buy.yaml index d293d02d..42dbf274 100644 --- a/tests/cassettes/test_shipment_buy.yaml +++ b/tests/cassettes/test_shipment_buy.yaml @@ -31,10 +31,8 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:08:51Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:53:52Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -42,100 +40,97 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": null, "updated_at": - "2023-11-28T22:08:52Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_ff16ae235b604835afd852671d978466", "object": - "CustomsInfo", "created_at": "2023-11-28T22:08:51Z", "updated_at": "2023-11-28T22:08:51Z", - "contents_explanation": "", "contents_type": "merchandise", "customs_certify": - true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": - "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_a3ffd67db51f4a1fbd82d152929d2534", - "object": "CustomsItem", "created_at": "2023-11-28T22:08:51Z", "updated_at": - "2023-11-28T22:08:51Z", "description": "Sweet shirts", "hs_tariff_number": - "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": - 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, - "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_b695bd4d8e3a11eebc8e3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:51+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + null, "updated_at": "2024-08-15T19:53:52Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_3aea01d774194e888e499c7a21c5ef22", + "object": "CustomsInfo", "created_at": "2024-08-15T19:53:52Z", "updated_at": + "2024-08-15T19:53:52Z", "contents_explanation": "", "contents_type": "merchandise", + "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI + 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, + "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": + [{"id": "cstitem_52d05460666c4570bfb63b02b43d0233", "object": "CustomsItem", + "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", + "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": + "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": + "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": + null}]}, "from_address": {"id": "adr_189ce33f5b4011efba1fac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ae833112b5d74b3297d87aae96793a7e", - "object": "Parcel", "created_at": "2023-11-28T22:08:51Z", "updated_at": "2023-11-28T22:08:51Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_83ae5ebb48204764955b9605b926415a", + "object": "Parcel", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_05676ca6d03141dd94a067b45335a41d", - "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7eb8606e070a4df19b70de813f9bea9d", - "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_de27c69e8beb4f509c878b5d166af364", + "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1be1983d511a44e091ed1cbc19d4c933", + "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", + "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_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b936eae682e543b1a6550ea120e81a3e", - "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + 2, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3334a452b8b9402cb6fc48c8a918e670", + "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_edd8a843891d49c195c76c6a06790d4c", - "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_3d1f945a2d4043f1bcbc28b029dd7140", "object": "Rate", "created_at": - "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_b691befe8e3a11ee92c2ac1f6bc539ae", "object": - "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:51+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_b695bd4d8e3a11eebc8e3cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": - "2023-11-28T22:08:51+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_189a6db55b4011efa8fb3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": + "2024-08-15T19:53:52+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_b691befe8e3a11ee92c2ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:51+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_189ce33f5b4011efba1fac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_189a6db55b4011efa8fb3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_9af92e0bdd6a428f8aba267686ab9cae", + {}}, "forms": [], "fees": [], "id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7265' + - '6912' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_9af92e0bdd6a428f8aba267686ab9cae + - /api/v2/shipments/shp_5ba7275d2fbe44ee9592f905cfaad5f7 pragma: - no-cache referrer-policy: @@ -151,27 +146,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8d656664f3e78a9c6f003f5eb1 + - 62c1f5da66be5cd0e788622b0017568a x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.448540' + - '0.716393' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_b936eae682e543b1a6550ea120e81a3e"}}' + body: '{"rate": {"id": "rate_3334a452b8b9402cb6fc48c8a918e670"}}' headers: Accept: - '*/*' @@ -188,13 +183,11 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_9af92e0bdd6a428f8aba267686ab9cae/buy + uri: https://api.easypost.com/v2/shipments/shp_5ba7275d2fbe44ee9592f905cfaad5f7/buy response: body: - string: '{"created_at": "2023-11-28T22:08:51Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:53:52Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -202,89 +195,88 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": "9400100105442285876350", - "updated_at": "2023-11-28T22:08:53Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_ff16ae235b604835afd852671d978466", - "object": "CustomsInfo", "created_at": "2023-11-28T22:08:51Z", "updated_at": - "2023-11-28T22:08:51Z", "contents_explanation": "", "contents_type": "merchandise", - "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI - 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, - "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_a3ffd67db51f4a1fbd82d152929d2534", "object": "CustomsItem", - "created_at": "2023-11-28T22:08:51Z", "updated_at": "2023-11-28T22:08:51Z", - "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": - "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": - "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_b695bd4d8e3a11eebc8e3cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:51+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + "9400100105807075742961", "updated_at": "2024-08-15T19:53:53Z", "batch_id": + null, "batch_status": null, "batch_message": null, "customs_info": {"id": + "cstinfo_3aea01d774194e888e499c7a21c5ef22", "object": "CustomsInfo", "created_at": + "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", "contents_explanation": + "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": + "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", + "restriction_comments": null, "restriction_type": "none", "mode": "test", + "declaration": null, "customs_items": [{"id": "cstitem_52d05460666c4570bfb63b02b43d0233", + "object": "CustomsItem", "created_at": "2024-08-15T19:53:52Z", "updated_at": + "2024-08-15T19:53:52Z", "description": "Sweet shirts", "hs_tariff_number": + "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": + 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, + "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": + "adr_189ce33f5b4011efba1fac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ae833112b5d74b3297d87aae96793a7e", - "object": "Parcel", "created_at": "2023-11-28T22:08:51Z", "updated_at": "2023-11-28T22:08:51Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_83ae5ebb48204764955b9605b926415a", + "object": "Parcel", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6ba46db52970487f941269647927a63c", - "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08:52Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_c41c8fbc77254a5ab7022bd7b84538fd", + "created_at": "2024-08-15T19:53:53Z", "updated_at": "2024-08-15T19:53:53Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:53Z", "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/20231128/e8befd4ff12e134ac6a31282975b6e7251.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8d3d657d04b6840afb1cbd22f87c62d2f.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_05676ca6d03141dd94a067b45335a41d", "object": - "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7eb8606e070a4df19b70de813f9bea9d", - "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_de27c69e8beb4f509c878b5d166af364", "object": + "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1be1983d511a44e091ed1cbc19d4c933", + "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", + "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_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b936eae682e543b1a6550ea120e81a3e", - "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + 2, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3334a452b8b9402cb6fc48c8a918e670", + "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_edd8a843891d49c195c76c6a06790d4c", - "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_3d1f945a2d4043f1bcbc28b029dd7140", "object": "Rate", "created_at": - "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_b936eae682e543b1a6550ea120e81a3e", - "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + 3, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_3334a452b8b9402cb6fc48c8a918e670", "object": + "Rate", "created_at": "2024-08-15T19:53:53Z", "updated_at": "2024-08-15T19:53:53Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_1ddd9a69b5d0487ebfc3941639b11b18", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285876350", - "status": "unknown", "status_detail": "unknown", "created_at": "2023-11-28T22:08:53Z", - "updated_at": "2023-11-28T22:08:53Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier": "USPS", + 3, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_19e7f422ccd249b5a97ec755230a615d", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742961", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:53Z", + "updated_at": "2024-08-15T19:53:53Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzFkZGQ5YTY5YjVkMDQ4N2ViZmMzOTQxNjM5YjExYjE4"}, - "to_address": {"id": "adr_b691befe8e3a11ee92c2ac1f6bc539ae", "object": "Address", - "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:52+00:00", + "https://track.easypost.com/djE6dHJrXzE5ZTdmNDIyY2NkMjQ5YjVhOTdlYzc1NTIzMGE2MTVk"}, + "to_address": {"id": "adr_189a6db55b4011efa8fb3cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -292,14 +284,14 @@ interactions: "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_b695bd4d8e3a11eebc8e3cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:51+00:00", + 4, "return_address": {"id": "adr_189ce33f5b4011efba1fac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_b691befe8e3a11ee92c2ac1f6bc539ae", "object": - "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:52+00:00", + {}}, "buyer_address": {"id": "adr_189a6db55b4011efa8fb3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -309,13 +301,13 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_9af92e0bdd6a428f8aba267686ab9cae", + "5.93000", "charged": true, "refunded": false}], "id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '9390' + - '9037' content-type: - application/json; charset=utf-8 expires: @@ -335,20 +327,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8d656664f4e78a9c6f003f5f41 + - 62c1f5da66be5cd0e788622b0017574b x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.817356' + - '0.850866' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_buy_with_end_shipper_id.yaml b/tests/cassettes/test_shipment_buy_with_end_shipper_id.yaml index 060909b0..8aed14d3 100644 --- a/tests/cassettes/test_shipment_buy_with_end_shipper_id.yaml +++ b/tests/cassettes/test_shipment_buy_with_end_shipper_id.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/end_shippers response: body: - string: '{"id": "es_ef7e352a39984f23bbad509378f88a5e", "object": "EndShipper", - "mode": "test", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:15+00:00", + string: '{"id": "es_13c5c2d7e79f4a988cbd1ed0dab5bad5", "object": "EndShipper", + "mode": "test", "created_at": "2024-08-15T19:54:13+00:00", "updated_at": "2024-08-15T19:54:13+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -51,20 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8e6566650be78a9f8a003f7324 + - 62c1f5d866be5ce5e788626700176cf4 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.053791' + - '0.052811' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -97,100 +97,93 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:09:15Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-11-28T22:09:16Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_c4fea2578e3a11ee9360ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:15+00:00", "name": + string: '{"created_at": "2024-08-15T19:54:14Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-08-15T19:54:14Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_25b762be5b4011efaeb23cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": + "2024-08-15T19:54:14+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_3598fc2bfb634861ad26651ec673677e", "object": + "Parcel", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", + "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_1753963d3f4c439e9b52da5e51b52330", + "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b4573877fb5845608570e383a7fc951f", + "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", + "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_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_15e9862423b244589dcafb1ab6062f21", + "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", + "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_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_25b4f7865b4011efbf9dac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": + "2024-08-15T19:54:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_25b762be5b4011efaeb23cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:14+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_e046da82c6bd4acbbf770fe146bdfb7b", - "object": "Parcel", "created_at": "2023-11-28T22:09:15Z", "updated_at": "2023-11-28T22:09:15Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_bb9eaf29829f41869b9bf69de2e39bc8", - "object": "Rate", "created_at": "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_905c6624ef184d6bb3e89896db708eee", - "object": "Rate", "created_at": "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_dc05694f93ae4a0695c1196cbe3b698d", "object": "Rate", "created_at": - "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_86e4f814b5ac4b1f90c12091f4814e07", "object": "Rate", "created_at": - "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e072214dca194acaaf6b9098925051e4", "object": "Rate", "created_at": - "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_c4fa61fa8e3a11ee853c3cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:15+00:00", + {}}, "buyer_address": {"id": "adr_25b4f7865b4011efbf9dac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_c4fea2578e3a11ee9360ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": - "2023-11-28T22:09:15+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_c4fa61fa8e3a11ee853c3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:15+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", + {}}, "forms": [], "fees": [], "id": "shp_be92641b5b1d422cb0b7d23455463e3b", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6394' + - '5804' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_6fc0b9c1df2e462388f869ab9b3194fa + - /api/v2/shipments/shp_be92641b5b1d422cb0b7d23455463e3b pragma: - no-cache referrer-policy: @@ -206,28 +199,28 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8e6566650be78a9f8a003f73a1 + - 62c1f5d866be5ce6e788626700176d0e x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.864003' + - '0.793818' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_bb9eaf29829f41869b9bf69de2e39bc8"}, "end_shipper_id": - "es_ef7e352a39984f23bbad509378f88a5e"}' + body: '{"rate": {"id": "rate_15e9862423b244589dcafb1ab6062f21"}, "end_shipper_id": + "es_13c5c2d7e79f4a988cbd1ed0dab5bad5"}' headers: Accept: - '*/*' @@ -244,92 +237,86 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_6fc0b9c1df2e462388f869ab9b3194fa/buy + uri: https://api.easypost.com/v2/shipments/shp_be92641b5b1d422cb0b7d23455463e3b/buy response: body: - string: '{"created_at": "2023-11-28T22:09:15Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285877234", "updated_at": "2023-11-28T22:09:17Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_c4fea2578e3a11ee9360ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:15+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_e046da82c6bd4acbbf770fe146bdfb7b", - "object": "Parcel", "created_at": "2023-11-28T22:09:15Z", "updated_at": "2023-11-28T22:09:15Z", + string: '{"created_at": "2024-08-15T19:54:14Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": "9400100105807075743081", + "updated_at": "2024-08-15T19:54:15Z", "batch_id": null, "batch_status": null, + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_25b762be5b4011efaeb23cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": + "2024-08-15T19:54:14+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_3598fc2bfb634861ad26651ec673677e", "object": + "Parcel", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_0b8f00c80db84f10835e64747c186d55", - "created_at": "2023-11-28T22:09:17Z", "updated_at": "2023-11-28T22:09:17Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:17Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_a17ec91e0d4b46e2bc130adda5a49308", + "created_at": "2024-08-15T19:54:15Z", "updated_at": "2024-08-15T19:54:15Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:15Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e86948b379378c4548b2b1e22034ce8392.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8d0091aeae21547678e7ef08eb695aea5.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_bb9eaf29829f41869b9bf69de2e39bc8", "object": - "Rate", "created_at": "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", + null}, "rates": [{"id": "rate_1753963d3f4c439e9b52da5e51b52330", "object": + "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b4573877fb5845608570e383a7fc951f", + "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", + "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_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_15e9862423b244589dcafb1ab6062f21", + "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_905c6624ef184d6bb3e89896db708eee", - "object": "Rate", "created_at": "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_dc05694f93ae4a0695c1196cbe3b698d", "object": "Rate", "created_at": - "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_86e4f814b5ac4b1f90c12091f4814e07", "object": "Rate", "created_at": - "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e072214dca194acaaf6b9098925051e4", "object": "Rate", "created_at": - "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_bb9eaf29829f41869b9bf69de2e39bc8", - "object": "Rate", "created_at": "2023-11-28T22:09:17Z", "updated_at": "2023-11-28T22:09:17Z", + 3, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_15e9862423b244589dcafb1ab6062f21", "object": + "Rate", "created_at": "2024-08-15T19:54:15Z", "updated_at": "2024-08-15T19:54:15Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_165f78d9ddbf4847a158fcae85425335", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285877234", - "status": "unknown", "status_detail": "unknown", "created_at": "2023-11-28T22:09:17Z", - "updated_at": "2023-11-28T22:09:17Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier": "USPS", + 3, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_9df7bdd832bf409b8d061ac5ac4db98f", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743081", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:54:15Z", + "updated_at": "2024-08-15T19:54:15Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzE2NWY3OGQ5ZGRiZjQ4NDdhMTU4ZmNhZTg1NDI1MzM1"}, - "to_address": {"id": "adr_c4fa61fa8e3a11ee853c3cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:17+00:00", + "https://track.easypost.com/djE6dHJrXzlkZjdiZGQ4MzJiZjQwOWI4ZDA2MWFjNWFjNGRiOThm"}, + "to_address": {"id": "adr_25b4f7865b4011efbf9dac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -337,14 +324,14 @@ interactions: "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_c4fea2578e3a11ee9360ac1f6bc53342", "object": - "Address", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:15+00:00", + 4, "return_address": {"id": "adr_25b762be5b4011efaeb23cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:14+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_c4fa61fa8e3a11ee853c3cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:17+00:00", + {}}, "buyer_address": {"id": "adr_25b4f7865b4011efbf9dac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -354,13 +341,13 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", + "5.93000", "charged": true, "refunded": false}], "id": "shp_be92641b5b1d422cb0b7d23455463e3b", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8519' + - '7929' content-type: - application/json; charset=utf-8 expires: @@ -380,20 +367,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8e6566650ce78a9f8a003f74bc + - 62c1f5d866be5ce6e788626700176dc7 x-frame-options: - SAMEORIGIN x-node: - - bigweb31nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.916769' + - '0.814862' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_convert_label.yaml b/tests/cassettes/test_shipment_convert_label.yaml index 9d0f7107..11f02d40 100644 --- a/tests/cassettes/test_shipment_convert_label.yaml +++ b/tests/cassettes/test_shipment_convert_label.yaml @@ -31,111 +31,106 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:08:55Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:53:56Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": null, "updated_at": - "2023-11-28T22:08:55Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_813acea118d64a3d95d48c466a9fd193", "object": - "CustomsInfo", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "contents_explanation": "", "contents_type": "merchandise", "customs_certify": - true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": - "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_c3b8b380d14940919b6ca9c46c865366", - "object": "CustomsItem", "created_at": "2023-11-28T22:08:55Z", "updated_at": - "2023-11-28T22:08:55Z", "description": "Sweet shirts", "hs_tariff_number": - "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": - 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, - "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + null, "updated_at": "2024-08-15T19:53:56Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_7c61d2c094884e9eb9b42d4e5d88054f", + "object": "CustomsInfo", "created_at": "2024-08-15T19:53:56Z", "updated_at": + "2024-08-15T19:53:56Z", "contents_explanation": "", "contents_type": "merchandise", + "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI + 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, + "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": + [{"id": "cstitem_d841f52083de41e9a3b8e8257f9189ae", "object": "CustomsItem", + "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", + "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": + "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": + "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": + null}]}, "from_address": {"id": "adr_1af195515b4011efbb28ac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_78f8ce6006b4410ebe73090326813d6f", - "object": "Parcel", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_1cc31c37166d41b3b6a630338c821c55", + "object": "Parcel", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e673920ca4934fb8bbaa55d1f0ce9848", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0aed4cd02b724572b8f37a6adae3526d", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_9ff2d3861d584f9f81ea451cf7e860fe", + "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81e6885100654291b65afbbe6c815e05", + "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", + "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_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + 2, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bb68f987d86c48eb80a4474601744aff", + "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_18e00efb68c84acf9bc2b764b36ab949", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_63e3f3d8537b4619939e11613133e651", "object": "Rate", "created_at": - "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": - "2023-11-28T22:08:55+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": + "2024-08-15T19:53:55+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_1af195515b4011efbb28ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_0773b823aa1941a693279145aa0c387a", + {}}, "forms": [], "fees": [], "id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7265' + - '6912' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_0773b823aa1941a693279145aa0c387a + - /api/v2/shipments/shp_5cfd3bffbbdc4b3cb82477a2401e2e65 pragma: - no-cache referrer-policy: @@ -146,34 +141,32 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 88ad7b90656664f7e78a9c71003f61fb + - 62c1f5dc66be5cd3e788624400175a56 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.474838' + - '0.937516' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8"}}' + body: '{"rate": {"id": "rate_bb68f987d86c48eb80a4474601744aff"}}' headers: Accept: - '*/*' @@ -190,103 +183,100 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_0773b823aa1941a693279145aa0c387a/buy + uri: https://api.easypost.com/v2/shipments/shp_5cfd3bffbbdc4b3cb82477a2401e2e65/buy response: body: - string: '{"created_at": "2023-11-28T22:08:55Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:53:56Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": "9400100105442285876503", - "updated_at": "2023-11-28T22:08:56Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_813acea118d64a3d95d48c466a9fd193", - "object": "CustomsInfo", "created_at": "2023-11-28T22:08:55Z", "updated_at": - "2023-11-28T22:08:55Z", "contents_explanation": "", "contents_type": "merchandise", - "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI - 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, - "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_c3b8b380d14940919b6ca9c46c865366", "object": "CustomsItem", - "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": - "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": - "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": - "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + "9400100105807075742978", "updated_at": "2024-08-15T19:53:57Z", "batch_id": + null, "batch_status": null, "batch_message": null, "customs_info": {"id": + "cstinfo_7c61d2c094884e9eb9b42d4e5d88054f", "object": "CustomsInfo", "created_at": + "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", "contents_explanation": + "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": + "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", + "restriction_comments": null, "restriction_type": "none", "mode": "test", + "declaration": null, "customs_items": [{"id": "cstitem_d841f52083de41e9a3b8e8257f9189ae", + "object": "CustomsItem", "created_at": "2024-08-15T19:53:56Z", "updated_at": + "2024-08-15T19:53:56Z", "description": "Sweet shirts", "hs_tariff_number": + "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": + 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, + "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": + "adr_1af195515b4011efbb28ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_78f8ce6006b4410ebe73090326813d6f", - "object": "Parcel", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_1cc31c37166d41b3b6a630338c821c55", + "object": "Parcel", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_a391feaafe2e40288e9afe00b241f198", - "created_at": "2023-11-28T22:08:56Z", "updated_at": "2023-11-28T22:08:56Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08:56Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_56e694d2cf6d44acbc854fc8071b703b", + "created_at": "2024-08-15T19:53:57Z", "updated_at": "2024-08-15T19:53:57Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:57Z", "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/20231128/e812edf03731e6436f85c4d5f9375dba74.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e84582a7855852473f94f3c4dfcd5a0c82.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_e673920ca4934fb8bbaa55d1f0ce9848", "object": - "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0aed4cd02b724572b8f37a6adae3526d", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_9ff2d3861d584f9f81ea451cf7e860fe", "object": + "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81e6885100654291b65afbbe6c815e05", + "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", + "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_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + 2, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bb68f987d86c48eb80a4474601744aff", + "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_18e00efb68c84acf9bc2b764b36ab949", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_63e3f3d8537b4619939e11613133e651", "object": "Rate", "created_at": - "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", - "object": "Rate", "created_at": "2023-11-28T22:08:56Z", "updated_at": "2023-11-28T22:08:56Z", + 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_bb68f987d86c48eb80a4474601744aff", "object": + "Rate", "created_at": "2024-08-15T19:53:57Z", "updated_at": "2024-08-15T19:53:57Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_2c304110b0a348eca2995f3176644987", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285876503", - "status": "unknown", "status_detail": "unknown", "created_at": "2023-11-28T22:08:56Z", - "updated_at": "2023-11-28T22:08:56Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier": "USPS", + 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4b0cf8b1afd640158ca7db0b6a167e7a", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742978", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:57Z", + "updated_at": "2024-08-15T19:53:57Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzJjMzA0MTEwYjBhMzQ4ZWNhMjk5NWYzMTc2NjQ0OTg3"}, - "to_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", + "https://track.easypost.com/djE6dHJrXzRiMGNmOGIxYWZkNjQwMTU4Y2E3ZGIwYjZhMTY3ZTdh"}, + "to_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -294,14 +284,14 @@ interactions: "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_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": - "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", + 4, "return_address": {"id": "adr_1af195515b4011efbb28ac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", + {}}, "buyer_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -311,13 +301,13 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_0773b823aa1941a693279145aa0c387a", + "5.93000", "charged": true, "refunded": false}], "id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '9390' + - '9037' content-type: - application/json; charset=utf-8 expires: @@ -337,20 +327,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b90656664f7e78a9c71003f629d + - 62c1f5dc66be5cd4e788624400175b45 x-frame-options: - SAMEORIGIN x-node: - - bigweb31nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.024556' + - '0.992248' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -370,106 +360,103 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_0773b823aa1941a693279145aa0c387a/label?file_format=ZPL + uri: https://api.easypost.com/v2/shipments/shp_5cfd3bffbbdc4b3cb82477a2401e2e65/label?file_format=ZPL response: body: - string: '{"created_at": "2023-11-28T22:08:55Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:53:56Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": "9400100105442285876503", - "updated_at": "2023-11-28T22:08:56Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_813acea118d64a3d95d48c466a9fd193", - "object": "CustomsInfo", "created_at": "2023-11-28T22:08:55Z", "updated_at": - "2023-11-28T22:08:55Z", "contents_explanation": "", "contents_type": "merchandise", - "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI - 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, - "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_c3b8b380d14940919b6ca9c46c865366", "object": "CustomsItem", - "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": - "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": - "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": - "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + "9400100105807075742978", "updated_at": "2024-08-15T19:53:57Z", "batch_id": + null, "batch_status": null, "batch_message": null, "customs_info": {"id": + "cstinfo_7c61d2c094884e9eb9b42d4e5d88054f", "object": "CustomsInfo", "created_at": + "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", "contents_explanation": + "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": + "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", + "restriction_comments": null, "restriction_type": "none", "mode": "test", + "declaration": null, "customs_items": [{"id": "cstitem_d841f52083de41e9a3b8e8257f9189ae", + "object": "CustomsItem", "created_at": "2024-08-15T19:53:56Z", "updated_at": + "2024-08-15T19:53:56Z", "description": "Sweet shirts", "hs_tariff_number": + "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": + 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, + "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": + "adr_1af195515b4011efbb28ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_78f8ce6006b4410ebe73090326813d6f", - "object": "Parcel", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_1cc31c37166d41b3b6a630338c821c55", + "object": "Parcel", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_a391feaafe2e40288e9afe00b241f198", - "created_at": "2023-11-28T22:08:56Z", "updated_at": "2023-11-28T22:08:58Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08:56Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_56e694d2cf6d44acbc854fc8071b703b", + "created_at": "2024-08-15T19:53:57Z", "updated_at": "2024-08-15T19:53:59Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:57Z", "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/20231128/e812edf03731e6436f85c4d5f9375dba74.png", - "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20231128/894c0f6f53e646bbb9ee1248f3f4bc47.zpl", - "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_e673920ca4934fb8bbaa55d1f0ce9848", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0aed4cd02b724572b8f37a6adae3526d", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e84582a7855852473f94f3c4dfcd5a0c82.png", + "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20240815/e5966c7ca3ef4403b9a2a472213595cc.zpl", + "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_9ff2d3861d584f9f81ea451cf7e860fe", + "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81e6885100654291b65afbbe6c815e05", + "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", + "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_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + 2, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bb68f987d86c48eb80a4474601744aff", + "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_18e00efb68c84acf9bc2b764b36ab949", - "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_63e3f3d8537b4619939e11613133e651", "object": "Rate", "created_at": - "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", - "object": "Rate", "created_at": "2023-11-28T22:08:56Z", "updated_at": "2023-11-28T22:08:56Z", + 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_bb68f987d86c48eb80a4474601744aff", "object": + "Rate", "created_at": "2024-08-15T19:53:57Z", "updated_at": "2024-08-15T19:53:57Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_0773b823aa1941a693279145aa0c387a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_2c304110b0a348eca2995f3176644987", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285876503", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2023-11-28T22:08:56Z", - "updated_at": "2023-11-28T22:08:56Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-11-28T22:08:56Z", "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", + 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4b0cf8b1afd640158ca7db0b6a167e7a", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742978", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:57Z", + "updated_at": "2024-08-15T19:53:58Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:58Z", "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:08:56Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:58Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:45:56Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:58Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -478,9 +465,9 @@ interactions: {"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/djE6dHJrXzJjMzA0MTEwYjBhMzQ4ZWNhMjk5NWYzMTc2NjQ0OTg3"}, - "to_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzRiMGNmOGIxYWZkNjQwMTU4Y2E3ZGIwYjZhMTY3ZTdh"}, + "to_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -488,14 +475,14 @@ interactions: "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_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": - "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", + 4, "return_address": {"id": "adr_1af195515b4011efbb28ac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", + {}}, "buyer_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -505,13 +492,13 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_0773b823aa1941a693279145aa0c387a", + "5.93000", "charged": true, "refunded": false}], "id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '10633' + - '10280' content-type: - application/json; charset=utf-8 expires: @@ -531,7 +518,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b90656664f9e78a9c71003f638d + - 62c1f5dc66be5cd6e788624400175c4a x-frame-options: - SAMEORIGIN x-node: @@ -539,12 +526,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.551822' + - '1.683488' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create.yaml b/tests/cassettes/test_shipment_create.yaml index b53f839d..8525ccc1 100644 --- a/tests/cassettes/test_shipment_create.yaml +++ b/tests/cassettes/test_shipment_create.yaml @@ -31,111 +31,106 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:08:46Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + string: '{"created_at": "2024-08-15T19:53:47Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": null, "updated_at": - "2023-11-28T22:08:47Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_0327d13c2d894f24a229494f641637e0", "object": - "CustomsInfo", "created_at": "2023-11-28T22:08:46Z", "updated_at": "2023-11-28T22:08:46Z", - "contents_explanation": "", "contents_type": "merchandise", "customs_certify": - true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": - "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_2de8abdbcc1f436f800d9dea6ee97276", - "object": "CustomsItem", "created_at": "2023-11-28T22:08:46Z", "updated_at": - "2023-11-28T22:08:46Z", "description": "Sweet shirts", "hs_tariff_number": - "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": - 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, - "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_b3a97c158e3a11ee88c8ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:08:46+00:00", "updated_at": "2023-11-28T22:08:46+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + null, "updated_at": "2024-08-15T19:53:48Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_bd2adfe345314386a7ced82c52fcfdf5", + "object": "CustomsInfo", "created_at": "2024-08-15T19:53:47Z", "updated_at": + "2024-08-15T19:53:47Z", "contents_explanation": "", "contents_type": "merchandise", + "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI + 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, + "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": + [{"id": "cstitem_f9e58260076a4c18a0ee0f78fa4163ae", "object": "CustomsItem", + "created_at": "2024-08-15T19:53:47Z", "updated_at": "2024-08-15T19:53:47Z", + "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": + "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": + "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": + null}]}, "from_address": {"id": "adr_15e713ae5b4011ef99dfac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:53:47+00:00", "updated_at": "2024-08-15T19:53:47+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_d69d061286f64f82988aad80b5a6327e", - "object": "Parcel", "created_at": "2023-11-28T22:08:46Z", "updated_at": "2023-11-28T22:08:46Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7c3ddba2ccea443b991dd18874179d49", + "object": "Parcel", "created_at": "2024-08-15T19:53:47Z", "updated_at": "2024-08-15T19:53:47Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e141f919c6c7422cbb0601abb82ba2a5", - "object": "Rate", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c08bd8a8060249c3906c5dd3c8c943f6", + "object": "Rate", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", + "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_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_39490b03c05c45c2b41df3073183258b", - "object": "Rate", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", + 2, "shipment_id": "shp_d1be4a906cdc460a91945ae576a19b27", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4e5b06bfacad41209a6367a17a48d4f7", + "object": "Rate", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cc7a86f6df8e465ca07a67c6059593e3", - "object": "Rate", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b88b7e03c1f640a18bfbdc034292b529", "object": "Rate", "created_at": - "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_fbbc571f1cc44fedbda02154f24c6a81", "object": "Rate", "created_at": - "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_b3a7617c8e3a11ee8622ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:08:46+00:00", "updated_at": "2023-11-28T22:08:46+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_b3a97c158e3a11ee88c8ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:08:46+00:00", "updated_at": - "2023-11-28T22:08:46+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_d1be4a906cdc460a91945ae576a19b27", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a23e93e4df0c4f3f94eb0c18d48994cc", + "object": "Rate", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_d1be4a906cdc460a91945ae576a19b27", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_15e4e95d5b4011ef99deac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:47+00:00", "updated_at": + "2024-08-15T19:53:47+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_b3a7617c8e3a11ee8622ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:08:46+00:00", "updated_at": "2023-11-28T22:08:46+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_15e713ae5b4011ef99dfac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:53:47+00:00", "updated_at": "2024-08-15T19:53:47+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_15e4e95d5b4011ef99deac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:53:47+00:00", "updated_at": "2024-08-15T19:53:47+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_8a8edce284194529b188ccc7721cfea4", + {}}, "forms": [], "fees": [], "id": "shp_d1be4a906cdc460a91945ae576a19b27", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7265' + - '6912' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_8a8edce284194529b188ccc7721cfea4 + - /api/v2/shipments/shp_d1be4a906cdc460a91945ae576a19b27 pragma: - no-cache referrer-policy: @@ -146,27 +141,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b8656664eee78a9c6b003fe922 + - 62c1f5db66be5ccbe788622700175213 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.483215' + - '0.711145' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create_empty_objects.yaml b/tests/cassettes/test_shipment_create_empty_objects.yaml index 2d2329d7..bb62319d 100644 --- a/tests/cassettes/test_shipment_create_empty_objects.yaml +++ b/tests/cassettes/test_shipment_create_empty_objects.yaml @@ -27,100 +27,93 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:09:04Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-11-28T22:09:05Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_be52ee708e3a11ee81593cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:09:04+00:00", "updated_at": "2023-11-28T22:09:04+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "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_c698a59382f84452a6870bedb3b3acc2", - "object": "Parcel", "created_at": "2023-11-28T22:09:04Z", "updated_at": "2023-11-28T22:09:04Z", + string: '{"created_at": "2024-08-15T19:54:04Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-08-15T19:54:05Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_1ff60c035b4011ef9deaac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:54:04+00:00", "updated_at": + "2024-08-15T19:54:04+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "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_c11ea6e5487443c8907aa0f6d8934895", "object": + "Parcel", "created_at": "2024-08-15T19:54:04Z", "updated_at": "2024-08-15T19:54:04Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0e5e450f33f24e92819e5bcce174e7d8", - "object": "Rate", "created_at": "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_5f0194c2094d415b9c01fdaf94d3f515", + "object": "Rate", "created_at": "2024-08-15T19:54:05Z", "updated_at": "2024-08-15T19:54:05Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_7dfde8feb9a6482c84e3c47f97c14e3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3c40de2790c04b93b913908471e18a97", + "object": "Rate", "created_at": "2024-08-15T19:54:05Z", "updated_at": "2024-08-15T19:54:05Z", + "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_f5391fd31308465db9776743f146db4c", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_57c76e997c8f4e6a8c859e8806c16011", - "object": "Rate", "created_at": "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", + 2, "shipment_id": "shp_7dfde8feb9a6482c84e3c47f97c14e3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_10c42728a9434925ba380ada18c25c2a", + "object": "Rate", "created_at": "2024-08-15T19:54:05Z", "updated_at": "2024-08-15T19:54:05Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_f5391fd31308465db9776743f146db4c", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2541091a96e3444090065f80670bf531", - "object": "Rate", "created_at": "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_f5391fd31308465db9776743f146db4c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_32778cf969a94025b181d89826689cb4", "object": "Rate", "created_at": - "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_f5391fd31308465db9776743f146db4c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_27ff349984ba4d4d9d424ae8df0cc437", "object": "Rate", "created_at": - "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_f5391fd31308465db9776743f146db4c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_be50371a8e3a11ee9773ac1f6bc539ae", "object": - "Address", "created_at": "2023-11-28T22:09:04+00:00", "updated_at": "2023-11-28T22:09:04+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_be52ee708e3a11ee81593cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:09:04+00:00", "updated_at": - "2023-11-28T22:09:04+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_7dfde8feb9a6482c84e3c47f97c14e3e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_1ff3402b5b4011efac0f3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:04+00:00", "updated_at": + "2024-08-15T19:54:04+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_be50371a8e3a11ee9773ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:09:04+00:00", "updated_at": "2023-11-28T22:09:04+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_1ff60c035b4011ef9deaac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:54:04+00:00", "updated_at": "2024-08-15T19:54:04+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "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_1ff3402b5b4011efac0f3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:54:04+00:00", "updated_at": "2024-08-15T19:54:04+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_f5391fd31308465db9776743f146db4c", + {}}, "forms": [], "fees": [], "id": "shp_7dfde8feb9a6482c84e3c47f97c14e3e", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6394' + - '5804' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_f5391fd31308465db9776743f146db4c + - /api/v2/shipments/shp_7dfde8feb9a6482c84e3c47f97c14e3e pragma: - no-cache referrer-policy: @@ -136,20 +129,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9265666500e78a9f83003f69bb + - 62c1f5d766be5cdce7886248001762c9 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.800244' + - '0.786989' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create_tax_identifier.yaml b/tests/cassettes/test_shipment_create_tax_identifier.yaml index 5445080b..c4c19a68 100644 --- a/tests/cassettes/test_shipment_create_tax_identifier.yaml +++ b/tests/cassettes/test_shipment_create_tax_identifier.yaml @@ -27,101 +27,94 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:09:06Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-11-28T22:09:06Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_bf1373408e3a11ee8d28ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:09:06+00:00", "updated_at": "2023-11-28T22:09:06+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ad5d8d76fd2c479a9aeb871bc4fe753d", - "object": "Parcel", "created_at": "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", + string: '{"created_at": "2024-08-15T19:54:05Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", + "type": "rate_error", "message": "Invalid Access License number"}], "mode": + "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-08-15T19:54:06Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_209098545b4011ef8e50ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:54:05+00:00", "updated_at": + "2024-08-15T19:54:05+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_6ae4d953176c409094c2c4977f803362", "object": + "Parcel", "created_at": "2024-08-15T19:54:05Z", "updated_at": "2024-08-15T19:54:05Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_2be24f3bd42a4a0cb10e539d5fe32c92", - "object": "Rate", "created_at": "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_69572a15cce345cca87b29e8f8bdd66d", + "object": "Rate", "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", + "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_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fb85938e9f2e4897b9fffe37a0ba92fe", - "object": "Rate", "created_at": "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", + 2, "shipment_id": "shp_8da99a570ede4f8893e7ecd2f65db7d1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ccca1f41d8e8434a826e1bca6063b764", + "object": "Rate", "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bdcd3ef5b4c84b56a2bf54940fe47cb0", - "object": "Rate", "created_at": "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e2b3aaea5c05410ba8832c5436521126", "object": "Rate", "created_at": - "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_1085a2c7ba414206b7d708ea3221a605", "object": "Rate", "created_at": - "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_bf0b46908e3a11ee8d25ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:09:05+00:00", "updated_at": "2023-11-28T22:09:05+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_bf1373408e3a11ee8d28ac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T22:09:06+00:00", "updated_at": - "2023-11-28T22:09:06+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_8da99a570ede4f8893e7ecd2f65db7d1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_53061899d9254801b2a3354a816c2026", + "object": "Rate", "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8da99a570ede4f8893e7ecd2f65db7d1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_208e62c05b4011ef9e19ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:54:05+00:00", "updated_at": + "2024-08-15T19:54:05+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_bf0b46908e3a11ee8d25ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:09:05+00:00", "updated_at": "2023-11-28T22:09:05+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_209098545b4011ef8e50ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:54:05+00:00", "updated_at": "2024-08-15T19:54:05+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_208e62c05b4011ef9e19ac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:54:05+00:00", "updated_at": "2024-08-15T19:54:05+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_06dae76aeb3e429287ca35dccd1d0a1d", + {}}, "forms": [], "fees": [], "id": "shp_8da99a570ede4f8893e7ecd2f65db7d1", "object": "Shipment", "tax_identifiers": [{"entity": "SENDER", "tax_id": "HIDDEN", "tax_id_type": "IOSS", "issuing_country": "GB"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '6496' + - '5906' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_06dae76aeb3e429287ca35dccd1d0a1d + - /api/v2/shipments/shp_8da99a570ede4f8893e7ecd2f65db7d1 pragma: - no-cache referrer-policy: @@ -137,20 +130,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9365666501e78a9f84003f6aa0 + - 62c1f5d666be5cdde7886249001763fe x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.759902' + - '1.029683' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create_with_ids.yaml b/tests/cassettes/test_shipment_create_with_ids.yaml index 79f7b241..1f4c88c4 100644 --- a/tests/cassettes/test_shipment_create_with_ids.yaml +++ b/tests/cassettes/test_shipment_create_with_ids.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_bfbcf8998e3a11ee901eac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09:07+00:00", + string: '{"id": "adr_215447c15b4011ef9e7aac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:54:06+00:00", "updated_at": "2024-08-15T19:54:06+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -39,7 +39,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_bfbcf8998e3a11ee901eac1f6bc53342 + - /api/v2/addresses/adr_215447c15b4011ef9e7aac1f6bc539aa pragma: - no-cache referrer-policy: @@ -50,25 +50,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9365666503e78a9f85003f6b8e + - 62c1f5d866be5cdee788624a001765bf x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.040775' + - '0.036798' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -97,8 +99,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_bfd8825c8e3a11ee9845ac1f6bc539ae", "object": "Address", - "created_at": "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09:07+00:00", + string: '{"id": "adr_2165ada15b4011efaca83cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:54:06+00:00", "updated_at": "2024-08-15T19:54:06+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -114,7 +116,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_bfd8825c8e3a11ee9845ac1f6bc539ae + - /api/v2/addresses/adr_2165ada15b4011efaca83cecef1b359e pragma: - no-cache referrer-policy: @@ -125,25 +127,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9365666503e78a9f85003f6bb2 + - 62c1f5d866be5cdee788624a001765e6 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.040241' + - '0.038789' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -170,8 +174,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_afbe09d245bc4206800ba9a28b94cba4", "object": "Parcel", - "created_at": "2023-11-28T22:09:07Z", "updated_at": "2023-11-28T22:09:07Z", + string: '{"id": "prcl_d79b6967ad3d4329a0321ad32b856733", "object": "Parcel", + "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -184,7 +188,7 @@ interactions: expires: - '0' location: - - /api/v2/parcels/prcl_afbe09d245bc4206800ba9a28b94cba4 + - /api/v2/parcels/prcl_d79b6967ad3d4329a0321ad32b856733 pragma: - no-cache referrer-policy: @@ -200,29 +204,29 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9365666503e78a9f85003f6bd8 + - 62c1f5d866be5cdee788624a0017660b x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.036102' + - '0.031866' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"shipment": {"from_address": {"id": "adr_bfbcf8998e3a11ee901eac1f6bc53342"}, - "to_address": {"id": "adr_bfd8825c8e3a11ee9845ac1f6bc539ae"}, "parcel": {"id": - "prcl_afbe09d245bc4206800ba9a28b94cba4"}}}' + body: '{"shipment": {"from_address": {"id": "adr_215447c15b4011ef9e7aac1f6bc539aa"}, + "to_address": {"id": "adr_2165ada15b4011efaca83cecef1b359e"}, "parcel": {"id": + "prcl_d79b6967ad3d4329a0321ad32b856733"}}}' headers: Accept: - '*/*' @@ -242,100 +246,93 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:09:07Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-11-28T22:09:08Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_bfbcf8998e3a11ee901eac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09:07+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_afbe09d245bc4206800ba9a28b94cba4", - "object": "Parcel", "created_at": "2023-11-28T22:09:07Z", "updated_at": "2023-11-28T22:09:07Z", + string: '{"created_at": "2024-08-15T19:54:07Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-08-15T19:54:07Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_215447c15b4011ef9e7aac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:54:06+00:00", "updated_at": + "2024-08-15T19:54:06+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_d79b6967ad3d4329a0321ad32b856733", "object": + "Parcel", "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e6830757ed374d7fad0010c2b50bef7d", - "object": "Rate", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "25.25", - "currency": "USD", "retail_rate": "29.20", "retail_currency": "USD", "list_rate": - "25.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c58b30434f6a4e1289b6f8ee06d7a671", - "object": "Rate", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.73", - "currency": "USD", "retail_rate": "9.35", "retail_currency": "USD", "list_rate": - "7.64", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_b25b320a2c434576b8f697109fd4fd3e", + "object": "Rate", "created_at": "2024-08-15T19:54:07Z", "updated_at": "2024-08-15T19:54:07Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.64", + "currency": "USD", "retail_rate": "9.25", "retail_currency": "USD", "list_rate": + "7.90", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_158f05986bb9485a9b8c5454f55b9964", - "object": "Rate", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", + 1, "shipment_id": "shp_f83b9a87d23948d0905ca72f8d826b3f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_afbf4330295c4c8686005745ea4ad00c", + "object": "Rate", "created_at": "2024-08-15T19:54:07Z", "updated_at": "2024-08-15T19:54:07Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.52", - "currency": "USD", "retail_rate": "7.60", "retail_currency": "USD", "list_rate": - "5.85", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.17", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bdc38a011a2c4f3a94e508f1a171a329", - "object": "Rate", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.52", "currency": - "USD", "retail_rate": "7.60", "retail_currency": "USD", "list_rate": "5.85", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_8df6bb6616da4749906a293ae5f69532", "object": "Rate", "created_at": - "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.52", "currency": - "USD", "retail_rate": "7.60", "retail_currency": "USD", "list_rate": "5.85", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_bfd8825c8e3a11ee9845ac1f6bc539ae", "object": - "Address", "created_at": "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09:07+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 1, "return_address": {"id": "adr_bfbcf8998e3a11ee901eac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:09:07+00:00", "updated_at": - "2023-11-28T22:09:07+00:00", "name": "Jack Sparrow", "company": null, "street1": + 2, "shipment_id": "shp_f83b9a87d23948d0905ca72f8d826b3f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a09f5bef4bf047678722f816de097820", + "object": "Rate", "created_at": "2024-08-15T19:54:07Z", "updated_at": "2024-08-15T19:54:07Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "26.75", + "currency": "USD", "retail_rate": "30.95", "retail_currency": "USD", "list_rate": + "26.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_f83b9a87d23948d0905ca72f8d826b3f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_2165ada15b4011efaca83cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:06+00:00", "updated_at": + "2024-08-15T19:54:06+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_bfd8825c8e3a11ee9845ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09:07+00:00", "name": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 1, "return_address": + {"id": "adr_215447c15b4011ef9e7aac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:54:06+00:00", "updated_at": "2024-08-15T19:54:06+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_a43912c17d674287aa39e8a4bfdf0fe2", + {}}, "buyer_address": {"id": "adr_2165ada15b4011efaca83cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:54:06+00:00", "updated_at": "2024-08-15T19:54:06+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "forms": [], "fees": [], "id": "shp_f83b9a87d23948d0905ca72f8d826b3f", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6397' + - '5808' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_a43912c17d674287aa39e8a4bfdf0fe2 + - /api/v2/shipments/shp_f83b9a87d23948d0905ca72f8d826b3f pragma: - no-cache referrer-policy: @@ -346,27 +343,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9365666503e78a9f85003f6bfa + - 62c1f5d866be5cdfe788624a0017661b x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.742956' + - '0.775498' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_generate_form.yaml b/tests/cassettes/test_shipment_generate_form.yaml index 43ea67f5..58ad9bea 100644 --- a/tests/cassettes/test_shipment_generate_form.yaml +++ b/tests/cassettes/test_shipment_generate_form.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:09:13Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:54:11Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285877098", "updated_at": "2023-11-28T22:09:14Z", "batch_id": + "9400100105807075743067", "updated_at": "2024-08-15T19:54:12Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_c356e7df8e3a11ee9a5dac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+00:00", "name": + {"id": "adr_246ce07f5b4011efae183cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b342d20a07264564bcec4fa1759713b3", - "object": "Parcel", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_32a6abc923004b41845599487982cd49", + "object": "Parcel", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7c755bc8ea744cd3b05409f87f1aaa01", - "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:13Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6d44b89c577d4cb4bffba42f3b0a682f", + "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54: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/20231128/e864120426313e45e290cf7b4135f5f31f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8d108ded4879b4bbcbc6241485676c787.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_fe1c82d95c974854a397548262336980", "object": - "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_5d672114742344f6b5f4656ef928195f", "object": + "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54: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_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_50f0eccf94d14ecabb0bcef922523bbc", + "object": "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_84d82fbb0f0a4f3993f7a3901c4a4499", + "object": "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54: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_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e1c3b894441c40528eb7d80a6a585ec1", - "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + 2, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_5d672114742344f6b5f4656ef928195f", "object": + "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3db3efabf0c043faafdf7963f6587991", - "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_305e71d637f14d0fbe38dc9b8d06b4f9", "object": "Rate", "created_at": - "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_dc617f2ea2bc49d7b7d9f7337759c223", "object": "Rate", "created_at": - "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_3db3efabf0c043faafdf7963f6587991", - "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_64766d457ce7416f9a294b30dedd9c2b", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285877098", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:09:14Z", "updated_at": - "2023-11-28T22:09:14Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_19a3782579fe481d9f610588d0a6804a", "carrier": "USPS", + 3, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_192cc0249a284e6889bee8390cf47341", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743067", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:54:13Z", + "updated_at": "2024-08-15T19:54:13Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzY0NzY2ZDQ1N2NlNzQxNmY5YTI5NGIzMGRlZGQ5YzJi"}, - "to_address": {"id": "adr_c354bbf28e3a11ee84473cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+00:00", + "https://track.easypost.com/djE6dHJrXzE5MmNjMDI0OWEyODRlNjg4OWJlZTgzOTBjZjQ3MzQx"}, + "to_address": {"id": "adr_246a76725b4011ef900aac1f6bc539ae", "object": "Address", + "created_at": "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:12+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_c356e7df8e3a11ee9a5dac1f6bc539ae", - "object": "Address", "created_at": "2023-11-28T22:09:13+00:00", "updated_at": - "2023-11-28T22:09:13+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_246ce07f5b4011efae183cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:11+00:00", "updated_at": + "2024-08-15T19:54:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_c354bbf28e3a11ee84473cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+00:00", "name": + "adr_246a76725b4011ef900aac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:12+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_19a3782579fe481d9f610588d0a6804a", "object": + "refunded": false}], "id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_19a3782579fe481d9f610588d0a6804a + - /api/v2/shipments/shp_c190d06e12f54c1488bcd4e91fa4bd9b pragma: - no-cache referrer-policy: @@ -151,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9065666509e78a9f89003f7112 + - 62c1f5da66be5ce3e788626600176ad7 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.004469' + - '1.203664' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -190,83 +177,70 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_19a3782579fe481d9f610588d0a6804a/forms + uri: https://api.easypost.com/v2/shipments/shp_c190d06e12f54c1488bcd4e91fa4bd9b/forms response: body: - string: '{"created_at": "2023-11-28T22:09:13Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:54:11Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285877098", "updated_at": "2023-11-28T22:09:14Z", "batch_id": + "9400100105807075743067", "updated_at": "2024-08-15T19:54:12Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_c356e7df8e3a11ee9a5dac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+00:00", "name": + {"id": "adr_246ce07f5b4011efae183cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b342d20a07264564bcec4fa1759713b3", - "object": "Parcel", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_32a6abc923004b41845599487982cd49", + "object": "Parcel", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7c755bc8ea744cd3b05409f87f1aaa01", - "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:13Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6d44b89c577d4cb4bffba42f3b0a682f", + "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54: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/20231128/e864120426313e45e290cf7b4135f5f31f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8d108ded4879b4bbcbc6241485676c787.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_fe1c82d95c974854a397548262336980", "object": - "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_5d672114742344f6b5f4656ef928195f", "object": + "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54: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_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_50f0eccf94d14ecabb0bcef922523bbc", + "object": "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_84d82fbb0f0a4f3993f7a3901c4a4499", + "object": "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54: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_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e1c3b894441c40528eb7d80a6a585ec1", - "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + 2, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_5d672114742344f6b5f4656ef928195f", "object": + "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3db3efabf0c043faafdf7963f6587991", - "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_305e71d637f14d0fbe38dc9b8d06b4f9", "object": "Rate", "created_at": - "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_dc617f2ea2bc49d7b7d9f7337759c223", "object": "Rate", "created_at": - "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_3db3efabf0c043faafdf7963f6587991", - "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_64766d457ce7416f9a294b30dedd9c2b", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285877098", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-11-28T22:09:14Z", "updated_at": - "2023-11-28T22:09:14Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-11-28T22:09:14Z", "shipment_id": "shp_19a3782579fe481d9f610588d0a6804a", + 3, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_192cc0249a284e6889bee8390cf47341", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743067", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:13Z", + "updated_at": "2024-08-15T19:54:13Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:13Z", "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:09:14Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:54: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": "2023-10-29T10:46:14Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:31: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 @@ -275,9 +249,9 @@ interactions: {"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/djE6dHJrXzY0NzY2ZDQ1N2NlNzQxNmY5YTI5NGIzMGRlZGQ5YzJi"}, - "to_address": {"id": "adr_c354bbf28e3a11ee84473cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzE5MmNjMDI0OWEyODRlNjg4OWJlZTgzOTBjZjQ3MzQx"}, + "to_address": {"id": "adr_246a76725b4011ef900aac1f6bc539ae", "object": "Address", + "created_at": "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:12+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -285,15 +259,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_c356e7df8e3a11ee9a5dac1f6bc539ae", - "object": "Address", "created_at": "2023-11-28T22:09:13+00:00", "updated_at": - "2023-11-28T22:09:13+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_246ce07f5b4011efae183cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:11+00:00", "updated_at": + "2024-08-15T19:54:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_c354bbf28e3a11ee84473cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+00:00", "name": + "adr_246a76725b4011ef900aac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:12+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -301,24 +275,24 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [{"object": "Form", "id": - "form_1c0109ca38a54caab512212b100b5add", "created_at": "2023-11-28T22:09:14Z", - "updated_at": "2023-11-28T22:09:14Z", "mode": "test", "form_type": "return_packing_slip", - "form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20231128/90b6caf93de14991b79eb5967eb9d5d3.pdf", + "form_d9f41de4bafd49af991bec5d1b609b5d", "created_at": "2024-08-15T19:54:13Z", + "updated_at": "2024-08-15T19:54:13Z", "mode": "test", "form_type": "return_packing_slip", + "form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20240815/8a23101b60c6458ca61488be3681fdc6.pdf", "submitted_electronically": null}], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, "refunded": false}], - "id": "shp_19a3782579fe481d9f610588d0a6804a", "object": "Shipment"}' + "id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8990' + - '7920' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_19a3782579fe481d9f610588d0a6804a/forms/return_packing_slip + - /api/v2/shipments/shp_c190d06e12f54c1488bcd4e91fa4bd9b/forms/return_packing_slip pragma: - no-cache referrer-policy: @@ -334,20 +308,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b906566650ae78a9f89003f7219 + - 62c1f5da66be5ce5e788626600176c22 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.599809' + - '0.526436' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml b/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml index 3bccaceb..ce8ef5a4 100644 --- a/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml +++ b/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml @@ -26,100 +26,93 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:09:11Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-11-28T22:09:12Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_c2782ea48e3a11ee91e0ac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:09:11+00:00", "updated_at": "2023-11-28T22:09:11+00:00", "name": + string: '{"created_at": "2024-08-15T19:54:10Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-08-15T19:54:11Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_23ab39155b4011efadc13cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:10+00:00", "updated_at": + "2024-08-15T19:54:10+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_20a0c8f506d0452081661ef2e46f640a", "object": + "Parcel", "created_at": "2024-08-15T19:54:10Z", "updated_at": "2024-08-15T19:54:10Z", + "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c086265f699c41b2bd93253125875eb6", + "object": "Rate", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", + "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_4f66c1da7957450d9c420f2bf976590f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f0914fd1ce694c2c85ecf766b1408ab8", + "object": "Rate", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", + "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_4f66c1da7957450d9c420f2bf976590f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_55f5e84df21145d080723de0e12dcb67", + "object": "Rate", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_23a726e45b4011ef8faaac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:54:10+00:00", "updated_at": + "2024-08-15T19:54:10+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_23ab39155b4011efadc13cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:54:10+00:00", "updated_at": "2024-08-15T19:54:10+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7bfca1137a1f426b98e017add3fc37cb", - "object": "Parcel", "created_at": "2023-11-28T22:09:11Z", "updated_at": "2023-11-28T22:09:11Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_554694341e59448fac370195d43880d6", - "object": "Rate", "created_at": "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a98e57095bbf414f8c977fd0adce35ce", - "object": "Rate", "created_at": "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_3f306937dbb5432485a274f3e4a383c5", "object": "Rate", "created_at": - "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_de1c5cd68b024fc0a117b84b79ddc8de", "object": "Rate", "created_at": - "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_be2cd75b56374eafbf401871c24a6670", "object": "Rate", "created_at": - "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_c27554028e3a11ee91dbac1f6bc53342", "object": - "Address", "created_at": "2023-11-28T22:09:11+00:00", "updated_at": "2023-11-28T22:09:11+00:00", + {}}, "buyer_address": {"id": "adr_23a726e45b4011ef8faaac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:54:10+00:00", "updated_at": "2024-08-15T19:54:10+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_c2782ea48e3a11ee91e0ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:09:11+00:00", "updated_at": - "2023-11-28T22:09:11+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "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_c27554028e3a11ee91dbac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:09:11+00:00", "updated_at": "2023-11-28T22:09:11+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_5e8eacd270264d25a78ba60e6c007403", + {}}, "forms": [], "fees": [], "id": "shp_4f66c1da7957450d9c420f2bf976590f", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6394' + - '5804' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_5e8eacd270264d25a78ba60e6c007403 + - /api/v2/shipments/shp_4f66c1da7957450d9c420f2bf976590f pragma: - no-cache referrer-policy: @@ -135,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9065666507e78a9f88003f6fc6 + - 62c1f5db66be5ce2e788626500176991 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.710293' + - '0.833516' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -168,57 +161,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_5e8eacd270264d25a78ba60e6c007403/smartrate + uri: https://api.easypost.com/v2/shipments/shp_4f66c1da7957450d9c420f2bf976590f/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:09:12Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_554694341e59448fac370195d43880d6", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:09:12Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:09:12Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_a98e57095bbf414f8c977fd0adce35ce", - "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", - "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": - 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": - "2023-11-28T22:09:12Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:09:12Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_3f306937dbb5432485a274f3e4a383c5", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:09:12Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:09:12Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_de1c5cd68b024fc0a117b84b79ddc8de", - "list_currency": "USD", "list_rate": 31.25, "mode": "test", "object": "Rate", - "rate": 31.25, "retail_currency": "USD", "retail_rate": 35.8, "service": "Express", - "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": - 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 5}, "updated_at": - "2023-11-28T22:09:12Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:09:12Z", "currency": "USD", "delivery_date": + "created_at": "2024-08-15T19:54:11Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_be2cd75b56374eafbf401871c24a6670", "list_currency": "USD", - "list_rate": 8.24, "mode": "test", "object": "Rate", "rate": 6.95, "retail_currency": - "USD", "retail_rate": 10.2, "service": "Priority", "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 2, "id": "rate_c086265f699c41b2bd93253125875eb6", "list_currency": "USD", + "list_rate": 8.25, "mode": "test", "object": "Rate", "rate": 6.9, "retail_currency": + "USD", "retail_rate": 9.8, "service": "Priority", "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": + 3}, "updated_at": "2024-08-15T19:54:11Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:11Z", + "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, + "delivery_days": 3, "est_delivery_days": 3, "id": "rate_f0914fd1ce694c2c85ecf766b1408ab8", + "list_currency": "USD", "list_rate": 6.4, "mode": "test", "object": "Rate", + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.45, "service": "GroundAdvantage", + "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", "time_in_transit": + {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": 3}, "updated_at": + "2024-08-15T19:54:11Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2024-08-15T19:54:11Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": + 1, "id": "rate_55f5e84df21145d080723de0e12dcb67", "list_currency": "USD", + "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": + "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 6}, "updated_at": "2023-11-28T22:09:12Z"}]}' + 7}, "updated_at": "2024-08-15T19:54:11Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '3274' + - '1965' content-type: - application/json; charset=utf-8 expires: @@ -238,20 +214,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9065666508e78a9f88003f709d + - 62c1f5db66be5ce3e788626500176a6b x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.105957' + - '0.110125' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_get_next_page.yaml b/tests/cassettes/test_shipment_get_next_page.yaml index d3aa9373..da10d5c9 100644 --- a/tests/cassettes/test_shipment_get_next_page.yaml +++ b/tests/cassettes/test_shipment_get_next_page.yaml @@ -16,117 +16,90 @@ interactions: uri: https://api.easypost.com/v2/shipments?page_size=5 response: body: - string: '{"shipments": [{"created_at": "2023-11-28T22:04:14Z", "is_return": + string: '{"shipments": [{"created_at": "2024-08-15T19:53:44Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", - "tracking_code": "9400100105442285865323", "updated_at": "2023-11-28T22:07:49Z", - "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c14abe119b4b47cca0eaffefa64ec311", - "object": "Parcel", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", + "tracking_code": "9400100105807075742923", "updated_at": "2024-08-15T19:53:46Z", + "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_d42002a5124a43348d65dc076d28bd8f", "object": + "Parcel", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f5482c5ee9694dc2aaf344cd96b84259", - "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:04:14Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_90dbc71ee37c4527a43004bcc4f854c0", + "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:45Z", "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/20231128/e8c8b82e8339f94b608d71b001b7c22082.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8c1d8e98eb0e5413ea193e5c48897179a.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f7fc0d50e1c54a7f94d19d07d83527e2", "object": - "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_066e670ca6864c0f92e9090d9cebe164", "object": + "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "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_389b05acbbff44bfa104ee937676bace", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f1537b73e7b445b86a0a34b139a0bbc", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + 2, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_807950a46bbe43a489b7a57b38f488bf", + "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "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_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_56c61eed5d794978804e403bc5ed49e7", + "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + {"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": "ScanForm", "created_at": + "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", "tracking_codes": + ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", + "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", + "confirmation": null}, "selected_rate": {"id": "rate_807950a46bbe43a489b7a57b38f488bf", + "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_389b05acbbff44bfa104ee937676bace", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_252d16804f6a4914990c7927640dc139", "object": "Rate", "created_at": - "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_550711dcaca14d96a311eedb314dbb30", "object": "Rate", "created_at": - "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", - "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_f7228e9b353c4d22820956036c86fcc8", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285865323", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:04:15Z", - "updated_at": "2023-11-28T22:07:15Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-11-28T22:07:15Z", "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", + 3, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4919a90d02f04349a34b4d71f8f8f411", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742923", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:46Z", + "updated_at": "2024-08-15T19:53:46Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:46Z", "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:07:15Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:46Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:44:15Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:46Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-29T20:49:15Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-30T22:25:15Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2023-10-31T01:16:15Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:56:15Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:06:15Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:58:15Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:58:15Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2Y3MjI4ZTliMzUzYzRkMjI4MjA5NTYwMzZjODZmY2M4"}, - "to_address": {"id": "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", + {"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/djE6dHJrXzQ5MTlhOTBkMDJmMDQzNDlhMzRiNGQ3MWY4ZjhmNDEx"}, + "to_address": {"id": "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -134,15 +107,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": - "2023-11-28T22:04:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": + "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", "name": + "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -152,267 +125,189 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_389b05acbbff44bfa104ee937676bace", "object": - "Shipment"}, {"created_at": "2023-11-28T22:03:47Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100105442285864357", "updated_at": "2023-11-28T22:07:56Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_010914128e3a11ee9588ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:47+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7c35fa7769554f47a95634acda4077f8", - "object": "Parcel", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "refunded": false}], "id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:43Z", "is_return": false, "messages": + [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742909", "updated_at": "2024-08-15T19:53:44Z", "batch_id": + "batch_18fedb84574b4787a77b7f6a3db400ce", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_fbe8636fe1394ba596759cb9a4f5e9b1", "object": + "Parcel", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_45b959020cec4c9382ea8582011ca45a", - "created_at": "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:03:48Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:48Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_83593ba0c4164a459047d79156830108", + "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:44Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:43Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8f508ea72234845a19614dc7b80747ec6.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8bc57675bcf1e4a21a30e657fca4a0ab0.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_d10fdd17bcc24102ba1a58b072850c64", "object": - "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8bdd5c31c7034669b0980cb1811a90b7", - "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1c112372e51140a49ae52a64b7e517de", "object": + "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + "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_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c56f73ba16274416bc45a3f3f07c2729", - "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + 2, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dcc1d9b8707048fe8c164460942cb535", + "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_63f66147f39d4a4ea83538d74e47d427", - "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7d0a166002ba410686b84e853c434f8d", "object": "Rate", "created_at": - "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_c56f73ba16274416bc45a3f3f07c2729", - "object": "Rate", "created_at": "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:03:48Z", + 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_59bf09da112248c194139c8cee72eb94", + "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + {"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": "ScanForm", "created_at": + "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", "tracking_codes": + ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", + "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", + "confirmation": null}, "selected_rate": {"id": "rate_dcc1d9b8707048fe8c164460942cb535", + "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e91af09aa32d41f3ada2c0e30df3c4f0", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285864357", - "status": "delivered", "status_detail": "arrived_at_destination", "created_at": - "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:06:49Z", "signed_by": - "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:49Z", - "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier": "USPS", - "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment - Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-28T22:06:49Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": - null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-29T10:43:49Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", - "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", - "message": "Arrived at USPS Origin Facility", "description": "", "status": - "in_transit", "status_detail": "arrived_at_facility", "datetime": "2023-10-29T20:48:49Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, - {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-30T22:24:49Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": - null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at - Post Office", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-31T01:15:49Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:49Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:49Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:49Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_48c523996d8f45c6a0b267166aea639a", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742909", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:44Z", + "updated_at": "2024-08-15T19:53:44Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:44Z", "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:44Z", "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-07-16T08:30:44Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:49Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2U5MWFmMDlhYTMyZDQxZjNhZGEyYzBlMzBkZjNjNGYw"}, - "to_address": {"id": "adr_01063a4a8e3a11ee9586ac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:48+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_010914128e3a11ee9588ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:47+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_01063a4a8e3a11ee9586ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:48+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + {"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/djE6dHJrXzQ4YzUyMzk5NmQ4ZjQ1YzZhMGIyNjcxNjZhZWE2Mzlh"}, + "to_address": {"id": "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", + "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", + "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "country": "US", "phone": "", "email": "", "mode": "test", + "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": + null, "verifications": {"zip4": {"success": true, "errors": [], "details": + null}, "delivery": {"success": true, "errors": [], "details": {"latitude": + 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, + "usps_zone": 4, "return_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": + "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", "name": + "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": + null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": - [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": - true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_ad5656f792d74fe2862fe497c75c1eb5", - "object": "Shipment"}, {"created_at": "2023-11-28T22:03:45Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", - "tracking_code": "9400100105442285864272", "updated_at": "2023-11-28T22:08:03Z", - "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_000c6eb58e3a11ee94ffac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": + {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": + true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, + "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", + "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_dce42fde655c4d969c550c16071130c4", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:38Z", "is_return": false, "messages": + [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742886", "updated_at": "2024-08-15T19:53:39Z", "batch_id": + null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": + {"id": "adr_108166455b4011efb6f1ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_5180a2c1a65848329e6508142539ca9d", - "object": "Parcel", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_642d11e9fb434aa998e00ad920aff76b", + "object": "Parcel", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_5dc65162838f41ae87512e6502ecf8bb", - "created_at": "2023-11-28T22:03:46Z", "updated_at": "2023-11-28T22:03:46Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:46Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_49a1063a6a4d4e369e0c0010e8106f2f", + "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:39Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53: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/20231128/e8eca41f0a3e5743d7af07c30f4b27d774.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86d824b1d760044a785ef93f8690c3a26.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f5688ca555764090a241d1d727ede196", "object": - "Rate", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", + null}, "rates": [{"id": "rate_391276f050354b6fa00b8244b10cee20", "object": + "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_20891227b5fb432fa0ac80ac0bba6cb5", + "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "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_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f0b282224c94e72bd212ef227f12169", + "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53: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_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": "submitted", "scan_form": + null, "selected_rate": {"id": "rate_3f0b282224c94e72bd212ef227f12169", "object": + "Rate", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_acee1b00d2ad4d4ab90867200fefc534", - "object": "Rate", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e8b77d984d3a4221868fab95ca984af5", "object": "Rate", "created_at": - "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_1d09e97dd8894ba6bf7fca2299639a12", "object": "Rate", "created_at": - "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e3eab61c56b3487c875fccb3e4f3f7aa", "object": "Rate", "created_at": - "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_acee1b00d2ad4d4ab90867200fefc534", - "object": "Rate", "created_at": "2023-11-28T22:03:46Z", "updated_at": "2023-11-28T22:03:46Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_32eeddfa17d44033961783d1b52f5790", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285864272", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:46Z", - "updated_at": "2023-11-28T22:06:46Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-11-28T22:06:46Z", "shipment_id": "shp_00f27ebd8cef472d9cd32faddbc7f445", + 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742886", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:39Z", + "updated_at": "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:39Z", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:06:46Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:39Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:43:46Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:39Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-29T20:48:46Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-30T22:24:46Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2023-10-31T01:15:46Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:46Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:46Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:46Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:46Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzMyZWVkZGZhMTdkNDQwMzM5NjE3ODNkMWI1MmY1Nzkw"}, - "to_address": {"id": "adr_000a6db08e3a11ee89b63cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+00:00", + {"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/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, + "to_address": {"id": "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -420,15 +315,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_000c6eb58e3a11ee94ffac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T22:03:45+00:00", "updated_at": - "2023-11-28T22:03:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_108166455b4011efb6f1ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:38+00:00", "updated_at": + "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_000a6db08e3a11ee89b63cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+00:00", "name": + "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -438,118 +333,80 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_00f27ebd8cef472d9cd32faddbc7f445", "object": - "Shipment"}, {"created_at": "2023-11-28T22:03:43Z", "is_return": false, "messages": + "refunded": false}], "id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:28Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100105442285864203", "updated_at": "2023-11-28T22:08:25Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_ff0756f38e3911ee9e62ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:43+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_2e49adf3e35b46c48725a6ae20197f38", - "object": "Parcel", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742763", "updated_at": "2024-08-15T19:53:29Z", "batch_id": + "batch_0e51f71c3821431d96a77aa333ac05a3", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_0a6ff5b25b4011ef9591ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:28+00:00", "updated_at": + "2024-08-15T19:53:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_485cf941942d4862967425c0543caa7c", "object": + "Parcel", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ac700070142c425aafad1497b357d4d0", - "created_at": "2023-11-28T22:03:44Z", "updated_at": "2023-11-28T22:03:44Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:44Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_767f256490c44ea6bbc52191a19791e1", + "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:29Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53: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/20231128/e8fce3cc3313264a158f9ca2b86bca1e9b.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8aa8c3f4aa4bb4a5fa3744ba0a97f5e98.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_c7a5afeb9df745f2847d2f92918e9c9a", "object": - "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a14e357b0cbb4203b1d4d2d448804ab6", - "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_a0ffc385a8224b4593b4b168ee624c0e", "object": + "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53: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_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81c91d416993451991803e544bf4a5d9", - "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + 2, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c6cec8860db147caae7c732ae4d7ce78", + "object": "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bc8c2bfec1bb47cd9ba910ecaf9274a2", - "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_233ffa51537f4c05bb9ff89be0477aa6", "object": "Rate", "created_at": - "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_bc8c2bfec1bb47cd9ba910ecaf9274a2", - "object": "Rate", "created_at": "2023-11-28T22:03:44Z", "updated_at": "2023-11-28T22:03:44Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_416f71cd090045c0a6590a8b6c4845b0", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285864203", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:44Z", - "updated_at": "2023-11-28T22:06:45Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-11-28T22:06:45Z", "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", + 3, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a0baddeb6aa84f4e8b3cf41cbf81a4fd", + "object": "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_c6cec8860db147caae7c732ae4d7ce78", "object": + "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53: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_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_24fa66d76fe344e4b291a4df3ca5e2b7", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742763", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:29Z", + "updated_at": "2024-08-15T19:53:29Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:29Z", "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:06:45Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:29Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:43:45Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:29Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-29T20:48:45Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-30T22:24:45Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2023-10-31T01:15:45Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:45Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:45Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:45Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:45Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzQxNmY3MWNkMDkwMDQ1YzBhNjU5MGE4YjZjNDg0NWIw"}, - "to_address": {"id": "adr_ff04cc778e3911ee9e61ac1f6bc539ae", "object": "Address", - "created_at": "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:44+00:00", + {"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/djE6dHJrXzI0ZmE2NmQ3NmZlMzQ0ZTRiMjkxYTRkZjNjYTVlMmI3"}, + "to_address": {"id": "adr_0a6d29265b4011efb480ac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:53:28+00:00", "updated_at": "2024-08-15T19:53:28+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -557,15 +414,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_ff0756f38e3911ee9e62ac1f6bc539ae", - "object": "Address", "created_at": "2023-11-28T22:03:43+00:00", "updated_at": - "2023-11-28T22:03:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_0a6ff5b25b4011ef9591ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:28+00:00", "updated_at": + "2024-08-15T19:53:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_ff04cc778e3911ee9e61ac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:44+00:00", "name": + "adr_0a6d29265b4011efb480ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:28+00:00", "updated_at": "2024-08-15T19:53:28+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -575,162 +432,112 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "object": - "Shipment"}, {"created_at": "2023-11-28T22:03:41Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100105442285864142", "updated_at": "2023-11-28T22:08:41Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_fdc32ad38e3911ee9351ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:41+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fb734727e45d4b77bc13c3fc1030c723", - "object": "Parcel", "created_at": "2023-11-28T22:03:41Z", "updated_at": "2023-11-28T22:03:41Z", + "refunded": false}], "id": "shp_9af00c32bcff44ea856d808545496d05", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:26Z", "is_return": false, "messages": + [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742756", "updated_at": "2024-08-15T19:53:27Z", "batch_id": + "batch_9b8905ead5a44f50bef9aa9902c4bff6", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_0942f3e35b4011efb3ddac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:26+00:00", "updated_at": + "2024-08-15T19:53:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_955cf25ac94d42faafbecfbbb04c8f31", "object": + "Parcel", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2fe5e816594b43218703f77389572490", - "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:42Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e10efa9d02884ecf9fcd62a94618043e", + "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:27Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:26Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e85a55642621d44e798cbb97b6d0af8f5d.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8eed2a1c6b0a843de89b7507b704cc11d.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_ce2e6e834db243d380d656f90837d4e3", "object": - "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_09878437b69843098947ee0768c18997", "object": + "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_048a5125c43b4fc2b2acfd48e3f1ef63", + "object": "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", + "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_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8931502ae8114e968453808984c31074", - "object": "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", + 2, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_416b4b8d011b423cbd8bb5ab3226c067", + "object": "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f2d5681a865e4a1ebeeb1990012d7abe", - "object": "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_bcf67383de3843e69ef42cb3a498506e", "object": "Rate", "created_at": - "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_757766f725db4db1917319b3abe867a1", "object": "Rate", "created_at": - "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_8931502ae8114e968453808984c31074", - "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + 3, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_416b4b8d011b423cbd8bb5ab3226c067", "object": + "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_5f3a0e7cfb304d7f9cd4a1d1952aa200", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285864142", - "status": "delivered", "status_detail": "arrived_at_destination", "created_at": - "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:06:43Z", "signed_by": - "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:43Z", - "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier": "USPS", - "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment - Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-28T22:06:43Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": - null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-29T10:43:43Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", - "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", - "message": "Arrived at USPS Origin Facility", "description": "", "status": - "in_transit", "status_detail": "arrived_at_facility", "datetime": "2023-10-29T20:48:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, - {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-30T22:24:43Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": - null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at - Post Office", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-31T01:15:43Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + 3, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b85437e1f5e440a6b1e16577dd1e0ece", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742756", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:27Z", + "updated_at": "2024-08-15T19:53:27Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:27Z", "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:27Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:30:27Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:43Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzVmM2EwZTdjZmIzMDRkN2Y5Y2Q0YTFkMTk1MmFhMjAw"}, - "to_address": {"id": "adr_fdc041eb8e3911ee934fac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:42+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_fdc32ad38e3911ee9351ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:41+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_fdc041eb8e3911ee934fac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:42+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + {"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/djE6dHJrX2I4NTQzN2UxZjVlNDQwYTZiMWUxNjU3N2RkMWUwZWNl"}, + "to_address": {"id": "adr_094021ea5b4011efb3daac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:53:26+00:00", "updated_at": "2024-08-15T19:53:26+00:00", + "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", + "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "country": "US", "phone": "", "email": "", "mode": "test", + "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": + null, "verifications": {"zip4": {"success": true, "errors": [], "details": + null}, "delivery": {"success": true, "errors": [], "details": {"latitude": + 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, + "usps_zone": 4, "return_address": {"id": "adr_0942f3e35b4011efb3ddac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:26+00:00", "updated_at": + "2024-08-15T19:53:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_094021ea5b4011efb3daac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:26+00:00", "updated_at": "2024-08-15T19:53:26+00:00", "name": + "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": + null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": - [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": - true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_9deca390f9a3470cb1c3062b004527c0", - "object": "Shipment"}], "has_more": true}' + null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": + {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": + true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, + "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", + "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_3b55322d17fe4cc09c36c663a54127bc", "object": + "Shipment"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '55484' + - '39979' content-type: - application/json; charset=utf-8 expires: @@ -750,20 +557,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b92656664f2e78a9c6e003f5d4a + - 62c1f5dd66be5ccee788622a00175509 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.507884' + - '0.499342' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -783,120 +590,82 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments?before_id=shp_9deca390f9a3470cb1c3062b004527c0&page_size=5 + uri: https://api.easypost.com/v2/shipments?before_id=shp_3b55322d17fe4cc09c36c663a54127bc&page_size=5 response: body: - string: '{"shipments": [{"created_at": "2023-11-28T22:03:38Z", "is_return": + string: '{"shipments": [{"created_at": "2024-08-15T19:53:24Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", - "tracking_code": "9400100105442285863961", "updated_at": "2023-11-28T22:08:05Z", - "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_fba6adcb8e3911ee95c0ac1f6bc53342", "object": - "Address", "created_at": "2023-11-28T22:03:38+00:00", "updated_at": "2023-11-28T22:03:38+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_f5c2daad3c024126bf6e92ca8b6a80b3", - "object": "Parcel", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", + {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", + "tracking_code": "9400100105807075742732", "updated_at": "2024-08-15T19:53:25Z", + "batch_id": "batch_42704ee9cfb04873bd7014b75b0631cf", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_07ff46795b4011ef8410ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:53:24+00:00", "updated_at": + "2024-08-15T19:53:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_762c6bbcdb004435bcea093d16506a41", "object": + "Parcel", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53:24Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d48e6465a2fb4d64b631481c5b743de3", - "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:38Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9f44b648f3854f60b3f4b941ec5276bf", + "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53:24Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:24Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8f9b7786160864d00a5d6e3856db5b326.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e81bafc5973a2d445a9081da08ff84f381.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f55ee2605a9f4221a06877569c3ecfe7", "object": - "Rate", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_db290f579ecd47a08b5d3eee6333d5b8", "object": + "Rate", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53: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_181ce8892eae4436af841b302832747c", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f965e8672cb4e908a0f735d89359779", - "object": "Rate", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", + 2, "shipment_id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_132689fe467d4792b1687a6385453bab", + "object": "Rate", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53: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_cdac342b18bf4225aa4c2f5f317c3d85", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3da724b06f3f4835832f4e0f009626c6", + "object": "Rate", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_132689fe467d4792b1687a6385453bab", "object": + "Rate", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53:24Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_181ce8892eae4436af841b302832747c", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_93a8315c0c404f6fa35c87d8b72915b8", - "object": "Rate", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_45df4ef025694e879840f1f003718c9f", "object": "Rate", "created_at": - "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_3a58c0eab7db4812821cf400bd836767", "object": "Rate", "created_at": - "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_93a8315c0c404f6fa35c87d8b72915b8", - "object": "Rate", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_9f15ae26c0ce40ca9a27f527cc4bf498", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285863961", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:39Z", - "updated_at": "2023-11-28T22:06:39Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-11-28T22:06:39Z", "shipment_id": "shp_181ce8892eae4436af841b302832747c", + 3, "shipment_id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_60780ca4e06a4472bfd2fbcbc28325e8", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742732", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:25Z", + "updated_at": "2024-08-15T19:53:25Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:25Z", "shipment_id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:06:39Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53: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": "2023-10-29T10:43:39Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:25Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-29T20:48:39Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-30T22:24:39Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2023-10-31T01:15:39Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:39Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:39Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:39Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:39Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzlmMTVhZTI2YzBjZTQwY2E5YTI3ZjUyN2NjNGJmNDk4"}, - "to_address": {"id": "adr_fba4b4b58e3911ee95beac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T22:03:38+00:00", "updated_at": "2023-11-28T22:03:38+00:00", + {"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/djE6dHJrXzYwNzgwY2E0ZTA2YTQ0NzJiZmQyZmJjYmMyODMyNWU4"}, + "to_address": {"id": "adr_07fc858c5b4011ef9429ac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:53:24+00:00", "updated_at": "2024-08-15T19:53:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -904,140 +673,98 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_fba6adcb8e3911ee95c0ac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:38+00:00", "updated_at": - "2023-11-28T22:03:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_07ff46795b4011ef8410ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:53:24+00:00", "updated_at": + "2024-08-15T19:53:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_fba4b4b58e3911ee95beac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:03:38+00:00", "updated_at": "2023-11-28T22:03:38+00:00", "name": + "adr_07fc858c5b4011ef9429ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:53:24+00:00", "updated_at": "2024-08-15T19:53:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, - "time_zone": "America/Los_Angeles"}}}}, "forms": [{"object": "Form", "id": - "form_8448cc344d7d401ab596e0df35133fbd", "created_at": "2023-11-28T22:03:39Z", - "updated_at": "2023-11-28T22:03:39Z", "mode": "test", "form_type": "return_packing_slip", - "form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20231128/6013e81400c645d09c3859e4be25ef77.pdf", - "submitted_electronically": null}], "fees": [{"object": "Fee", "type": "LabelFee", - "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", - "type": "PostageFee", "amount": "5.93000", "charged": true, "refunded": false}], - "id": "shp_181ce8892eae4436af841b302832747c", "object": "Shipment"}, {"created_at": - "2023-11-28T22:03:26Z", "is_return": false, "messages": [], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "delivered", "tracking_code": "9400100105442285863497", - "updated_at": "2023-11-28T22:07:31Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_f47811368e3911ee8d28ac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T22:03:26+00:00", "updated_at": - "2023-11-28T22:03:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", + "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:22Z", "is_return": false, "messages": + [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742718", "updated_at": "2024-08-15T19:53:23Z", "batch_id": + "batch_e71c2a65655041b7990a30979c8e20c6", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_06c1f4c25b4011efb236ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:22+00:00", "updated_at": + "2024-08-15T19:53:22+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_67c1d6de8f7645be98f83fab3189a9c3", "object": - "Parcel", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", + null, "parcel": {"id": "prcl_55a9e9123c944d45b1f31243647e3faf", "object": + "Parcel", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d16db6a7d1bb46b1ab4c63215ee40113", - "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:26Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_0ec758cdacc64828863a74c2963db195", + "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:22Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8554c8c22efed445da3310e6c9ab5a50f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e810274fb9b8f4459f9db0a8d493be974f.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_ab90ede02c6b482c8d377b943ca689b8", "object": - "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_70b1cea4db2640b5b98e8a6740565f9c", - "object": "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_87a5b5e4f61b4fa582ad55e846377113", "object": + "Rate", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7577ce92afcc4893bbb5f78a582b48b8", + "object": "Rate", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", + "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_418799a3de3849c48b085d2536ab1175", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_86a70ee679fe474bbe5ecdf7743adfff", - "object": "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", + 2, "shipment_id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_adec718a015c44afa8eea36ab5a40094", + "object": "Rate", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53: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_eaf71966e4f941bdbfe86109f1e6d49e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_adec718a015c44afa8eea36ab5a40094", "object": + "Rate", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_418799a3de3849c48b085d2536ab1175", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ca68cd4f53ad48089e99b77a0f1ac3af", - "object": "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7ddb4a4fff6645b3bb8db682a070759e", "object": "Rate", "created_at": - "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_ca68cd4f53ad48089e99b77a0f1ac3af", - "object": "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_c746948c361045499ee9913720ae3a7c", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285863497", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:26Z", - "updated_at": "2023-11-28T22:06:27Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-11-28T22:06:27Z", "shipment_id": "shp_418799a3de3849c48b085d2536ab1175", + 3, "shipment_id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_be6b8f6d7be44b3e94a8a50786e286a1", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742718", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:23Z", + "updated_at": "2024-08-15T19:53:23Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:23Z", "shipment_id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:06:27Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:23Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:43:27Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:23Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-29T20:48:27Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-30T22:24:27Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2023-10-31T01:15:27Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:27Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:27Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:27Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:27Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2M3NDY5NDhjMzYxMDQ1NDk5ZWU5OTEzNzIwYWUzYTdj"}, - "to_address": {"id": "adr_f475c4da8e3911ee8d26ac1f6bc539aa", "object": "Address", - "created_at": "2023-11-28T22:03:26+00:00", "updated_at": "2023-11-28T22:03:26+00:00", + {"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/djE6dHJrX2JlNmI4ZjZkN2JlNDRiM2U5NGE4YTUwNzg2ZTI4NmEx"}, + "to_address": {"id": "adr_06be58135b4011ef8305ac1f6bc539ae", "object": "Address", + "created_at": "2024-08-15T19:53:22+00:00", "updated_at": "2024-08-15T19:53:22+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -1045,15 +772,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_f47811368e3911ee8d28ac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T22:03:26+00:00", "updated_at": - "2023-11-28T22:03:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_06c1f4c25b4011efb236ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:53:22+00:00", "updated_at": + "2024-08-15T19:53:22+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_f475c4da8e3911ee8d26ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:03:26+00:00", "updated_at": "2023-11-28T22:03:26+00:00", "name": + "adr_06be58135b4011ef8305ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:53:22+00:00", "updated_at": "2024-08-15T19:53:22+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -1063,118 +790,80 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_418799a3de3849c48b085d2536ab1175", "object": - "Shipment"}, {"created_at": "2023-11-28T22:03:24Z", "is_return": false, "messages": + "refunded": false}], "id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:19Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100105442285863435", "updated_at": "2023-11-28T22:07:40Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_f35ba4e08e3911ee903dac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:03:24+00:00", "updated_at": "2023-11-28T22:03:24+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_d63e988a3ab0424a9f749a3965ca0e22", - "object": "Parcel", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9400100105807075742701", "updated_at": "2024-08-15T19:53:19Z", "batch_id": + "batch_aa5fe2c31cd7478c9a16a818f277635f", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_04ff067c5b4011ef9209ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:19+00:00", "updated_at": + "2024-08-15T19:53:19+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_99018502d37e40b99972ea647a1685a7", "object": + "Parcel", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d2dbe5def01249ff94ab04fa2ba3996b", - "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:25Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:24Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_92094987a34d47bd8d634591fb017ce4", + "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:19Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e86f27a66762234c069d11706c8aba0720.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8138f9d898bc448ca9c514325eb16e3a6.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_8d47f8d1292c4fff961ea4a2a3f1e154", "object": - "Rate", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_008e138897df4dd395fe045e2db487eb", "object": + "Rate", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", + "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_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4cf4c675188a42deac29a400e7015cfb", - "object": "Rate", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", + 2, "shipment_id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eedc6560b3c34ae8bea6bba95855e576", + "object": "Rate", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_591af8cba087472dadacab51d09bad2c", - "object": "Rate", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_675ea34617ca4355b3d6d8bf104e217e", "object": "Rate", "created_at": - "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_2e346e9385a941aa93fe46e624729106", "object": "Rate", "created_at": - "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_591af8cba087472dadacab51d09bad2c", - "object": "Rate", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_57cd08d4624e4f1a977ea8f9e6a1037d", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285863435", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:25Z", - "updated_at": "2023-11-28T22:06:25Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-11-28T22:06:25Z", "shipment_id": "shp_a5368a6b2ae34e0cbbc33995615c8d7d", + 3, "shipment_id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_92b87381ae5b49d4972c1471d6358822", + "object": "Rate", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_eedc6560b3c34ae8bea6bba95855e576", "object": + "Rate", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", + "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_8be01e27ca3446eda3a811b6e36c4df5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_bf10ec2270834758a9e6bd45bf4fbe90", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742701", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:20Z", + "updated_at": "2024-08-15T19:53:20Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:20Z", "shipment_id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:06:25Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:53:20Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:43:25Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:30:20Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-29T20:48:25Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-30T22:24:25Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2023-10-31T01:15:25Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:25Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:25Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:25Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:25Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzU3Y2QwOGQ0NjI0ZTRmMWE5NzdlYThmOWU2YTEwMzdk"}, - "to_address": {"id": "adr_f3598fab8e3911ee96aaac1f6bc539ae", "object": "Address", - "created_at": "2023-11-28T22:03:24+00:00", "updated_at": "2023-11-28T22:03:24+00:00", + {"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/djE6dHJrX2JmMTBlYzIyNzA4MzQ3NThhOWU2YmQ0NWJmNGZiZTkw"}, + "to_address": {"id": "adr_04fd07235b4011efb102ac1f6bc53342", "object": "Address", + "created_at": "2024-08-15T19:53:19+00:00", "updated_at": "2024-08-15T19:53:19+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -1182,15 +871,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_f35ba4e08e3911ee903dac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:03:24+00:00", "updated_at": - "2023-11-28T22:03:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_04ff067c5b4011ef9209ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:19+00:00", "updated_at": + "2024-08-15T19:53:19+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_f3598fab8e3911ee96aaac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:03:24+00:00", "updated_at": "2023-11-28T22:03:24+00:00", "name": + "adr_04fd07235b4011efb102ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:19+00:00", "updated_at": "2024-08-15T19:53:19+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -1200,143 +889,81 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}, {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", - "charged": true, "refunded": false}], "id": "shp_a5368a6b2ae34e0cbbc33995615c8d7d", - "object": "Shipment"}, {"created_at": "2023-11-28T22:03:20Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "delivered", "tracking_code": "9400100105442285863275", - "updated_at": "2023-11-28T22:08:22Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_6f0404f7412a4584aac515fedbf01b1e", - "object": "CustomsInfo", "created_at": "2023-11-28T22:03:20Z", "updated_at": - "2023-11-28T22:03: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": - [{"id": "cstitem_3b5c3cbaddf147a5979f9f61e1d0a7fc", "object": "CustomsItem", - "created_at": "2023-11-28T22:03:20Z", "updated_at": "2023-11-28T22:03:20Z", - "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": - "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": - "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_f13f73888e3911ee9523ac1f6bc539ae", "object": - "Address", "created_at": "2023-11-28T22:03:20+00:00", "updated_at": "2023-11-28T22:03:20+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "refunded": false}], "id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "object": + "Shipment"}, {"created_at": "2024-08-15T19:53:13Z", "is_return": false, "messages": + [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + "9434600105807075742697", "updated_at": "2024-08-15T19:53:16Z", "batch_id": + null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": + {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_770c5aefa4eb4fe8a357fe99d896c2e4", - "object": "Parcel", "created_at": "2023-11-28T22:03:20Z", "updated_at": "2023-11-28T22:03:20Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_0751e70954c3444da7ad13ddff69716b", - "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:23Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03: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/20231128/e8f383d9c4b79b4a13b855683520d8e060.png", - "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20231128/9bd5e5ddacc3484a9536e75e9165ef27.zpl", - "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_a114846fc6b84d36960ead498f0af671", - "object": "Rate", "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_57d0d5c1adc446e09b92537cd353ae3a", - "object": "Rate", "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + {}}, "insurance": null, "order_id": "order_1ec32f65712d4da18891042c8b13a320", + "parcel": {"id": "prcl_825ae02c7a6c4a03bbfb07e3456ef0d6", "object": "Parcel", + "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 17.5, "mode": "test"}, "postage_label": {"object": "PostageLabel", + "id": "pl_b2144b0eb8784c14a8c4b2186d6520e5", "created_at": "2024-08-15T19:53:16Z", + "updated_at": "2024-08-15T19:53:16Z", "date_advance": 0, "integrated_form": + "none", "label_date": "2024-08-15T19:53: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/20240815/e882636a63fd9c4d1c81ad135bf61b6d88.png", + "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": + null}, "rates": [{"id": "rate_12f65c47259b4658b19df702e504a593", "object": + "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d9d0342315ec404aa57934eee208f393", - "object": "Rate", "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_32e275764cd74b31b4682a19f9ee794f", "object": "Rate", "created_at": - "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_aad1aa159d824a5a98ea790306fb8d7a", "object": "Rate", "created_at": - "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_57d0d5c1adc446e09b92537cd353ae3a", - "object": "Rate", "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37dd89b2cb32496eab9fa0aad6c724f3", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_46080d7983d6421b8b46245a8246b8d6", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_12f65c47259b4658b19df702e504a593", "object": + "Rate", "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:16Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_8e9942071c6d4a44b29601e6c329e650", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285863275", - "status": "delivered", "status_detail": "arrived_at_destination", "created_at": - "2023-11-28T22:03:22Z", "updated_at": "2023-11-28T22:06:22Z", "signed_by": - "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:22Z", - "shipment_id": "shp_8cc38feebc22474ba96952ed517086e6", "carrier": "USPS", - "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment - Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-28T22:06: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": "2023-10-29T10:43:22Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", - "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", - "message": "Arrived at USPS Origin Facility", "description": "", "status": - "in_transit", "status_detail": "arrived_at_facility", "datetime": "2023-10-29T20:48:22Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, - {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-30T22:24:22Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": - null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at - Post Office", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-31T01:15:22Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:22Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:22Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:22Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_74a4cf0f407042489d0ef96c14f12467", + "object": "Tracker", "mode": "test", "tracking_code": "9434600105807075742697", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:16Z", + "updated_at": "2024-08-15T19:53:16Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:16Z", "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53: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-07-16T08:30: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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:22Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzhlOTk0MjA3MWM2ZDRhNDRiMjk2MDFlNmMzMjllNjUw"}, - "to_address": {"id": "adr_f13d11d18e3911eebfcd3cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:03:20+00:00", "updated_at": "2023-11-28T22:03:21+00:00", + {"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/djE6dHJrXzc0YTRjZjBmNDA3MDQyNDg5ZDBlZjk2YzE0ZjEyNDY3"}, + "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -1344,14 +971,14 @@ interactions: "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_f13f73888e3911ee9523ac1f6bc539ae", "object": - "Address", "created_at": "2023-11-28T22:03:20+00:00", "updated_at": "2023-11-28T22:03:20+00:00", + 4, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_f13d11d18e3911eebfcd3cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:03:20+00:00", "updated_at": "2023-11-28T22:03:21+00:00", + {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -1361,142 +988,81 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_8cc38feebc22474ba96952ed517086e6", - "object": "Shipment"}, {"created_at": "2023-11-28T22:03:17Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "delivered", "tracking_code": "9400100105442285863145", - "updated_at": "2023-11-28T22:07:35Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_602b4555338248ba820fdac9f34c15e2", - "object": "CustomsInfo", "created_at": "2023-11-28T22:03:17Z", "updated_at": - "2023-11-28T22:03:17Z", "contents_explanation": "", "contents_type": "merchandise", - "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI - 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, - "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_4e775230e37a4c55ac60c2b5e32940a8", "object": "CustomsItem", - "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", - "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": - "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": - "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_ef47ab0c8e3911ee93c7ac1f6bc539ae", "object": - "Address", "created_at": "2023-11-28T22:03:17+00:00", "updated_at": "2023-11-28T22:03:17+00:00", + "6.33000", "charged": true, "refunded": false}], "id": "shp_8c97e92d163a457da27bffbc5311c7c4", + "object": "Shipment"}, {"created_at": "2024-08-15T19:53:13Z", "is_return": + false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": + {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", + "tracking_code": "9400100105807075742640", "updated_at": "2024-08-15T19:53:15Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_483b6b66c732429f9b2a36a3e3d1305f", - "object": "Parcel", "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7a853e91285b4b259feb345abbb39414", - "created_at": "2023-11-28T22:03:18Z", "updated_at": "2023-11-28T22:03:18Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03: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/20231128/e8d2dfbf74c1c6480787155c527abebb1f.png", + {}}, "insurance": null, "order_id": "order_1ec32f65712d4da18891042c8b13a320", + "parcel": {"id": "prcl_f3ca719456b24d78bb1db4ba34b1fc80", "object": "Parcel", + "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 10.2, "mode": "test"}, "postage_label": {"object": "PostageLabel", + "id": "pl_553320f687e9443d866f62d0f6402297", "created_at": "2024-08-15T19:53:15Z", + "updated_at": "2024-08-15T19:53:15Z", "date_advance": 0, "integrated_form": + "none", "label_date": "2024-08-15T19:53:15Z", "label_resolution": 300, "label_size": + "4x6", "label_type": "default", "label_file_type": "image/png", "label_url": + "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8e7f7c416b427496ba2ad5d2d3a5df385.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_d09760ed2a0f49bdbea92ac3c563cdce", "object": - "Rate", "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", "object": + "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "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_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9cf4b5c72b5e475b8059e56e9ed3928a", - "object": "Rate", "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4a33c6c437914edb88fd59d8e9378156", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cf9b3d2a61d74b7da25cead89ab21792", - "object": "Rate", "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e1818aa941c44f5eaef2bcf730cc7d0b", "object": "Rate", "created_at": - "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_50a974613890464eac5e376a1a3e1f6c", "object": "Rate", "created_at": - "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_9cf4b5c72b5e475b8059e56e9ed3928a", - "object": "Rate", "created_at": "2023-11-28T22:03:18Z", "updated_at": "2023-11-28T22:03:18Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", + "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_4a33c6c437914edb88fd59d8e9378156", "object": + "Rate", "created_at": "2024-08-15T19:53:15Z", "updated_at": "2024-08-15T19:53:15Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_10b93bb5c780475a85cbb530a4237558", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285863145", - "status": "delivered", "status_detail": "arrived_at_destination", "created_at": - "2023-11-28T22:03:19Z", "updated_at": "2023-11-28T22:06:19Z", "signed_by": - "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:19Z", - "shipment_id": "shp_95272ec7f7764d94a8ed775009698a0b", "carrier": "USPS", - "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment - Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-28T22:06:19Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": - null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-10-29T10:43:19Z", "source": "USPS", "carrier_code": - "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", - "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", - "message": "Arrived at USPS Origin Facility", "description": "", "status": - "in_transit", "status_detail": "arrived_at_facility", "datetime": "2023-10-29T20:48:19Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, - {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-10-30T22:24:19Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": - null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at - Post Office", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-10-31T01:15:19Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:19Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:19Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:19Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_3089cb021793401da4a645e1c4f4379a", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742640", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:16Z", + "updated_at": "2024-08-15T19:53:16Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:16Z", "shipment_id": "shp_33818a0642104028b9c680342f687137", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53: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-07-16T08:30: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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-10-31T11:57:19Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzEwYjkzYmI1Yzc4MDQ3NWE4NWNiYjUzMGE0MjM3NTU4"}, - "to_address": {"id": "adr_ef45c7e58e3911ee8d54ac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T22:03:17+00:00", "updated_at": "2023-11-28T22:03:18+00:00", + {"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/djE6dHJrXzMwODljYjAyMTc5MzQwMWRhNGE2NDVlMWM0ZjQzNzlh"}, + "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -1504,14 +1070,14 @@ interactions: "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_ef47ab0c8e3911ee93c7ac1f6bc539ae", "object": - "Address", "created_at": "2023-11-28T22:03:17+00:00", "updated_at": "2023-11-28T22:03:17+00:00", + 4, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_ef45c7e58e3911ee8d54ac1f6bc53342", "object": - "Address", "created_at": "2023-11-28T22:03:17+00:00", "updated_at": "2023-11-28T22:03:18+00:00", + {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -1521,13 +1087,13 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_95272ec7f7764d94a8ed775009698a0b", + "5.07000", "charged": true, "refunded": false}], "id": "shp_33818a0642104028b9c680342f687137", "object": "Shipment"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '57767' + - '38186' content-type: - application/json; charset=utf-8 expires: @@ -1547,20 +1113,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b92656664f2e78a9c6e003f5df1 + - 62c1f5dd66be5ccee788622a0017558f x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.491111' + - '0.591390' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_insure.yaml b/tests/cassettes/test_shipment_insure.yaml index d6515969..8ea99cca 100644 --- a/tests/cassettes/test_shipment_insure.yaml +++ b/tests/cassettes/test_shipment_insure.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS", "insurance": 0}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '612' + - '622' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:08:59Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:54:00Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285876619", "updated_at": "2023-11-28T22:08:59Z", "batch_id": + "9400100105807075743005", "updated_at": "2024-08-15T19:54:00Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_baf2995b8e3a11eebf533cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+00:00", "name": + {"id": "adr_1d5930be5b4011ef8d0eac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ef3fd05006b34cd589c454b0d096231f", - "object": "Parcel", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_f36369a0dde0487780823c07e8c36224", + "object": "Parcel", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_416f7c0045344499a7de593063c472c3", - "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08:59Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9b4ac0d8abea4ad8aaccd27364165e4f", + "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:00Z", "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/20231128/e81bf8ff302c2a4607b0398c74d6adfca3.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8fec138e891ff4088bf6231c9a2426a59.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_a9a8e79f9e15450c874267b8a897f8de", "object": - "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f817c76d78fc442a89503ad8cb6d83a7", - "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_bf0040375c68403281272531ff46b2ff", "object": + "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + "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_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_80d0c77f56534903a31677309903695e", - "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + 2, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d16318d981d24491b3a147fea949359b", + "object": "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8f9d39ee295a4c858800832114d1afae", - "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_88b1469278c34621922fe5dc04620b60", "object": "Rate", "created_at": - "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_8f9d39ee295a4c858800832114d1afae", - "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_3893ad3ddd414889831c0e2f44057a0f", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285876619", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:09:00Z", "updated_at": - "2023-11-28T22:09:00Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier": "USPS", + 3, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9069086708e441069225538e6f29be66", + "object": "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_d16318d981d24491b3a147fea949359b", "object": + "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + "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_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_cfaf3d94fbbb45c1982d8816869afdb5", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743005", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:54:00Z", + "updated_at": "2024-08-15T19:54:00Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzM4OTNhZDNkZGQ0MTQ4ODk4MzFjMGUyZjQ0MDU3YTBm"}, - "to_address": {"id": "adr_baf025c38e3a11ee8d6cac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+00:00", + "https://track.easypost.com/djE6dHJrX2NmYWYzZDk0ZmJiYjQ1YzE5ODJkODgxNjg2OWFmZGI1"}, + "to_address": {"id": "adr_1d56421c5b4011ef9cdaac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_baf2995b8e3a11eebf533cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:08:59+00:00", "updated_at": - "2023-11-28T22:08:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_1d5930be5b4011ef8d0eac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:54:00+00:00", "updated_at": + "2024-08-15T19:54:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_baf025c38e3a11ee8d6cac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+00:00", "name": + "adr_1d56421c5b4011ef9cdaac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_12ab6646f9bd4220aa8d54f46029f950", "object": + "refunded": false}], "id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_12ab6646f9bd4220aa8d54f46029f950 + - /api/v2/shipments/shp_c2b1a9fca18e43bea7c1cad8358623f9 pragma: - no-cache referrer-policy: @@ -146,27 +133,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8e656664fbe78a9c72003f6500 + - 62c1f5d666be5cd7e788624500175e23 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '1.007681' + - '1.061829' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -190,83 +175,70 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_12ab6646f9bd4220aa8d54f46029f950/insure + uri: https://api.easypost.com/v2/shipments/shp_c2b1a9fca18e43bea7c1cad8358623f9/insure response: body: - string: '{"created_at": "2023-11-28T22:08:59Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:54:00Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285876619", "updated_at": "2023-11-28T22:08:59Z", "batch_id": + "9400100105807075743005", "updated_at": "2024-08-15T19:54:00Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_baf2995b8e3a11eebf533cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+00:00", "name": + {"id": "adr_1d5930be5b4011ef8d0eac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_ef3fd05006b34cd589c454b0d096231f", - "object": "Parcel", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_f36369a0dde0487780823c07e8c36224", + "object": "Parcel", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_416f7c0045344499a7de593063c472c3", - "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08:59Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9b4ac0d8abea4ad8aaccd27364165e4f", + "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:00Z", "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/20231128/e81bf8ff302c2a4607b0398c74d6adfca3.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8fec138e891ff4088bf6231c9a2426a59.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_a9a8e79f9e15450c874267b8a897f8de", "object": - "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f817c76d78fc442a89503ad8cb6d83a7", - "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_bf0040375c68403281272531ff46b2ff", "object": + "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + "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_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_80d0c77f56534903a31677309903695e", - "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + 2, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d16318d981d24491b3a147fea949359b", + "object": "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + "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_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9069086708e441069225538e6f29be66", + "object": "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_d16318d981d24491b3a147fea949359b", "object": + "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8f9d39ee295a4c858800832114d1afae", - "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_88b1469278c34621922fe5dc04620b60", "object": "Rate", "created_at": - "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_8f9d39ee295a4c858800832114d1afae", - "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_3893ad3ddd414889831c0e2f44057a0f", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285876619", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-11-28T22:09:00Z", "updated_at": - "2023-11-28T22:09:00Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-11-28T22:09:00Z", "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", + 3, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_cfaf3d94fbbb45c1982d8816869afdb5", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743005", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:01Z", + "updated_at": "2024-08-15T19:54:01Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:01Z", "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:09:00Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:54:01Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:46:00Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:31:01Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -275,9 +247,9 @@ interactions: {"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/djE6dHJrXzM4OTNhZDNkZGQ0MTQ4ODk4MzFjMGUyZjQ0MDU3YTBm"}, - "to_address": {"id": "adr_baf025c38e3a11ee8d6cac1f6bc53342", "object": "Address", - "created_at": "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2NmYWYzZDk0ZmJiYjQ1YzE5ODJkODgxNjg2OWFmZGI1"}, + "to_address": {"id": "adr_1d56421c5b4011ef9cdaac1f6bc539aa", "object": "Address", + "created_at": "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -285,15 +257,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_baf2995b8e3a11eebf533cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:08:59+00:00", "updated_at": - "2023-11-28T22:08:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_1d5930be5b4011ef8d0eac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:54:00+00:00", "updated_at": + "2024-08-15T19:54:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_baf025c38e3a11ee8d6cac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+00:00", "name": + "adr_1d56421c5b4011ef9cdaac1f6bc539aa", "object": "Address", "created_at": + "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -304,13 +276,13 @@ interactions: "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, "refunded": false}, {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", - "charged": true, "refunded": false}], "id": "shp_12ab6646f9bd4220aa8d54f46029f950", + "charged": true, "refunded": false}], "id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8750' + - '7680' content-type: - application/json; charset=utf-8 expires: @@ -332,7 +304,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8e656664fce78a9c72003f65ed + - 62c1f5d666be5cd9e788624500175f32 x-frame-options: - SAMEORIGIN x-node: @@ -340,12 +312,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.351304' + - '0.257479' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_lowest_rate.yaml b/tests/cassettes/test_shipment_lowest_rate.yaml index 8477e33a..728b823e 100644 --- a/tests/cassettes/test_shipment_lowest_rate.yaml +++ b/tests/cassettes/test_shipment_lowest_rate.yaml @@ -31,111 +31,106 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:09:08Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + string: '{"created_at": "2024-08-15T19:54:08Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": null, "updated_at": - "2023-11-28T22:09:09Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_58152b887ad34430aee2825b95b5c88d", "object": - "CustomsInfo", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", - "contents_explanation": "", "contents_type": "merchandise", "customs_certify": - true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": - "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_b79038b074b64055ba642538f806ee0a", - "object": "CustomsItem", "created_at": "2023-11-28T22:09:08Z", "updated_at": - "2023-11-28T22:09:08Z", "description": "Sweet shirts", "hs_tariff_number": - "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": - 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, - "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_c0c042518e3a11ee98ceac1f6bc539ae", "object": "Address", "created_at": - "2023-11-28T22:09:08+00:00", "updated_at": "2023-11-28T22:09:08+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + null, "updated_at": "2024-08-15T19:54:08Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_5b54733e467e4be2a65876b80d68715c", + "object": "CustomsInfo", "created_at": "2024-08-15T19:54:08Z", "updated_at": + "2024-08-15T19:54:08Z", "contents_explanation": "", "contents_type": "merchandise", + "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI + 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, + "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": + [{"id": "cstitem_2f5a31e5df2e489a9bd9b7f45ce87b50", "object": "CustomsItem", + "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", + "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": + "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": + "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": + null}]}, "from_address": {"id": "adr_22259dc55b4011ef8efbac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_d5b71566f8e6428c836db73699b916f3", - "object": "Parcel", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_cec685da1e5a460d8882456cffb7dbcb", + "object": "Parcel", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_4abcd07f5e8647d8a73f0b455dcfa16f", - "object": "Rate", "created_at": "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a49ccbb2e04540a89d65d20c87b5df0b", - "object": "Rate", "created_at": "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_15aa6eb1df784e2193918d27d2be7f62", + "object": "Rate", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54: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_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e320a0c829c6475189e643d092e4be69", - "object": "Rate", "created_at": "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", + 2, "shipment_id": "shp_6591b800c33b4d5baab21efe116ee30d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2689c85aa2c5421b8c12efe2ea37a37a", + "object": "Rate", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d0147efba0e641d7ad0b13084110dbd8", - "object": "Rate", "created_at": "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_d158a8b9a9ef4e69a8ff677a455da4db", "object": "Rate", "created_at": - "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_c0bd71ab8e3a11ee82b73cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:09:08+00:00", "updated_at": "2023-11-28T22:09:08+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_c0c042518e3a11ee98ceac1f6bc539ae", - "object": "Address", "created_at": "2023-11-28T22:09:08+00:00", "updated_at": - "2023-11-28T22:09:08+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_6591b800c33b4d5baab21efe116ee30d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a9a96c12427740ceb1a16619d3045e6f", + "object": "Rate", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54: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": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_6591b800c33b4d5baab21efe116ee30d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_222367455b4011efacfa3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": + "2024-08-15T19:54:08+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_c0bd71ab8e3a11ee82b73cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:09:08+00:00", "updated_at": "2023-11-28T22:09:08+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_22259dc55b4011ef8efbac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_222367455b4011efacfa3cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_8cfbbec9ab924796bfb87620178b4ad0", + {}}, "forms": [], "fees": [], "id": "shp_6591b800c33b4d5baab21efe116ee30d", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7265' + - '6912' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_8cfbbec9ab924796bfb87620178b4ad0 + - /api/v2/shipments/shp_6591b800c33b4d5baab21efe116ee30d pragma: - no-cache referrer-policy: @@ -151,20 +146,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b8d65666504e78a9f86003f6d03 + - 62c1f5db66be5ce0e788624c00176708 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.538335' + - '0.654469' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_lowest_smart_rate.yaml b/tests/cassettes/test_shipment_lowest_smart_rate.yaml index 99426c1b..342b6481 100644 --- a/tests/cassettes/test_shipment_lowest_smart_rate.yaml +++ b/tests/cassettes/test_shipment_lowest_smart_rate.yaml @@ -26,100 +26,93 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:19:56Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-11-28T22:19:57Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_42b818358e3c11eeb8363cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:19:56+00:00", "updated_at": "2023-11-28T22:19:56+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_d9969a6ae08a4d71a9fbcb02f22e72ed", - "object": "Parcel", "created_at": "2023-11-28T22:19:56Z", "updated_at": "2023-11-28T22:19:56Z", + string: '{"created_at": "2024-08-15T19:54:08Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-08-15T19:54:09Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_22ad49b85b4011efbe39ac1f6bc53342", + "object": "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": + "2024-08-15T19:54:08+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_df48cba401d94648b31d702cf67e59d0", "object": + "Parcel", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_43f3da4c4c18404088d8e8c8fd1ccffb", - "object": "Rate", "created_at": "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a5a18e44962b429797c80863971595b6", - "object": "Rate", "created_at": "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_afb2b16149ba46c8b39f5e2dd87f4660", + "object": "Rate", "created_at": "2024-08-15T19:54:09Z", "updated_at": "2024-08-15T19:54:09Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b20926218bb84440b4362601a01ce0de", + "object": "Rate", "created_at": "2024-08-15T19:54:09Z", "updated_at": "2024-08-15T19:54:09Z", + "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_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_63fda49b61f841be93e1c8f950a42d15", - "object": "Rate", "created_at": "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", + 2, "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8219233edb3a49d49f3ef4396e51811e", + "object": "Rate", "created_at": "2024-08-15T19:54:09Z", "updated_at": "2024-08-15T19:54:09Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_67e0334da3d442d28e52c6a182050fdc", - "object": "Rate", "created_at": "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_a6f0298899544d479d434ca725a3fe4a", "object": "Rate", "created_at": - "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_42b5ba7a8e3c11eeb8333cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:19:56+00:00", "updated_at": "2023-11-28T22:19:56+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_42b818358e3c11eeb8363cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:19:56+00:00", "updated_at": - "2023-11-28T22:19:56+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_22ab2e155b4011ef9ef5ac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": + "2024-08-15T19:54:08+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_42b5ba7a8e3c11eeb8333cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:19:56+00:00", "updated_at": "2023-11-28T22:19:56+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_22ad49b85b4011efbe39ac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_22ab2e155b4011ef9ef5ac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_15600b9a2a294cde85234f7357c41d63", + {}}, "forms": [], "fees": [], "id": "shp_564e911f1b93469eae216295950e97ec", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6394' + - '5804' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_15600b9a2a294cde85234f7357c41d63 + - /api/v2/shipments/shp_564e911f1b93469eae216295950e97ec pragma: - no-cache referrer-policy: @@ -130,27 +123,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - ae35d0b46566678ce78b05c20042c40d + - 62c1f5d866be5ce0e7886264001767f3 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.886327' + - '0.814878' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -170,57 +161,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_15600b9a2a294cde85234f7357c41d63/smartrate + uri: https://api.easypost.com/v2/shipments/shp_564e911f1b93469eae216295950e97ec/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_43f3da4c4c18404088d8e8c8fd1ccffb", "list_currency": "USD", - "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": - "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 5}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 2, "est_delivery_days": 2, "id": "rate_a5a18e44962b429797c80863971595b6", - "list_currency": "USD", "list_rate": 8.24, "mode": "test", "object": "Rate", - "rate": 6.95, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", - "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 6}, "updated_at": - "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_63fda49b61f841be93e1c8f950a42d15", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", + "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": + 1, "id": "rate_afb2b16149ba46c8b39f5e2dd87f4660", "list_currency": "USD", + "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": + "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": + 7}, "updated_at": "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_67e0334da3d442d28e52c6a182050fdc", - "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", - "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": - 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": - "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": + "delivery_days": 2, "est_delivery_days": 2, "id": "rate_b20926218bb84440b4362601a01ce0de", + "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", + "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", + "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "time_in_transit": + {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": 3}, "updated_at": + "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_a6f0298899544d479d434ca725a3fe4a", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:19:57Z"}]}' + 3, "id": "rate_8219233edb3a49d49f3ef4396e51811e", "list_currency": "USD", + "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": + 3}, "updated_at": "2024-08-15T19:54:09Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '3274' + - '1965' content-type: - application/json; charset=utf-8 expires: @@ -240,20 +214,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b46566678de78b05c20042c516 + - 62c1f5d866be5ce1e7886264001768f0 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.131334' + - '0.135283' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -273,57 +247,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_15600b9a2a294cde85234f7357c41d63/smartrate + uri: https://api.easypost.com/v2/shipments/shp_564e911f1b93469eae216295950e97ec/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_43f3da4c4c18404088d8e8c8fd1ccffb", "list_currency": "USD", - "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": - "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 5}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", + "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": + 1, "id": "rate_afb2b16149ba46c8b39f5e2dd87f4660", "list_currency": "USD", + "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": + "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": + 7}, "updated_at": "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 2, "est_delivery_days": 2, "id": "rate_a5a18e44962b429797c80863971595b6", - "list_currency": "USD", "list_rate": 8.24, "mode": "test", "object": "Rate", - "rate": 6.95, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", - "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 6}, "updated_at": - "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": + "delivery_days": 2, "est_delivery_days": 2, "id": "rate_b20926218bb84440b4362601a01ce0de", + "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", + "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", + "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "time_in_transit": + {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": 3}, "updated_at": + "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_63fda49b61f841be93e1c8f950a42d15", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_67e0334da3d442d28e52c6a182050fdc", - "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", - "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": - 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": - "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_a6f0298899544d479d434ca725a3fe4a", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:19:57Z"}]}' + 3, "id": "rate_8219233edb3a49d49f3ef4396e51811e", "list_currency": "USD", + "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": + 3}, "updated_at": "2024-08-15T19:54:09Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '3274' + - '1965' content-type: - application/json; charset=utf-8 expires: @@ -343,20 +300,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b46566678de78b05c20042c557 + - 62c1f5d866be5ce2e78862640017691a x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.086209' + - '0.107635' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -376,57 +333,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_15600b9a2a294cde85234f7357c41d63/smartrate + uri: https://api.easypost.com/v2/shipments/shp_564e911f1b93469eae216295950e97ec/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_43f3da4c4c18404088d8e8c8fd1ccffb", "list_currency": "USD", - "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": - "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 5}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", + "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": + 1, "id": "rate_afb2b16149ba46c8b39f5e2dd87f4660", "list_currency": "USD", + "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": + "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": + 7}, "updated_at": "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 2, "est_delivery_days": 2, "id": "rate_a5a18e44962b429797c80863971595b6", - "list_currency": "USD", "list_rate": 8.24, "mode": "test", "object": "Rate", - "rate": 6.95, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", - "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 6}, "updated_at": - "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": + "delivery_days": 2, "est_delivery_days": 2, "id": "rate_b20926218bb84440b4362601a01ce0de", + "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", + "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", + "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "time_in_transit": + {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": 3}, "updated_at": + "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_63fda49b61f841be93e1c8f950a42d15", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_67e0334da3d442d28e52c6a182050fdc", - "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", - "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": - 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": - "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_a6f0298899544d479d434ca725a3fe4a", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:19:57Z"}]}' + 3, "id": "rate_8219233edb3a49d49f3ef4396e51811e", "list_currency": "USD", + "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": + 3}, "updated_at": "2024-08-15T19:54:09Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '3274' + - '1965' content-type: - application/json; charset=utf-8 expires: @@ -446,20 +386,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b46566678ee78b05c20042c604 + - 62c1f5d866be5ce2e78862640017693e x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.099432' + - '0.116067' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_recommend_ship_date.yaml b/tests/cassettes/test_shipment_recommend_ship_date.yaml index 89dbae4b..4993dbb8 100644 --- a/tests/cassettes/test_shipment_recommend_ship_date.yaml +++ b/tests/cassettes/test_shipment_recommend_ship_date.yaml @@ -26,348 +26,93 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-07-09T21:30:03Z", "is_return": false, "messages": - [{"carrier": "DHLExpress", "carrier_account_id": "ca_2b428229ad214147a2ec13c4faf18934", - "type": "rate_error", "message": "Unable to retrieve DHLExpress rates for - US domestic shipments."}, {"carrier": "AustraliaPost", "carrier_account_id": - "ca_3b84ac568d7444759b77d1f2f2c05d7a", "type": "rate_error", "message": "Unable - to retrieve AustraliaPost rates for non-AU origin address."}, {"carrier": - "ParcelForce", "carrier_account_id": "ca_a32ed104ca784c25b25f19d7c28191c3", - "type": "rate_error", "message": "Unable to retrieve ParcelForce rates for - non-GB origin address."}, {"carrier": "Canpar", "carrier_account_id": "ca_32c1bc2cb75e45f19cff9fd047204f6e", - "type": "rate_error", "message": "Unable to retrieve Canpar rates for non-CA - origin shipments."}, {"carrier": "LoomisExpress", "carrier_account_id": "ca_63fb7c3dd56c410085454c5a79bc545f", - "type": "rate_error", "message": "Unable to retrieve LoomisExpress rates for - non-CA origin address."}, {"carrier": "RoyalMail", "carrier_account_id": "ca_f80ce1217c0b4f9b82d566b88dc1a6bd", - "type": "rate_error", "message": "Unable to retrieve RoyalMail rates for non-GB - origin address."}, {"type": "rate_error", "carrier": "LSO", "message": "credentials.username: - Required"}, {"type": "rate_error", "carrier": "LSO", "message": "credentials.password: - Required"}, {"carrier": "CouriersPlease", "carrier_account_id": "ca_6c70860c1edd46c69394beee4e02765f", - "type": "rate_error", "message": "credentials.username: field required and - credentials.password: field required"}, {"type": "rate_error", "carrier": - "OnTrac", "message": "credentials.account_number: Required"}, {"carrier": - "AmazonMws", "carrier_account_id": "ca_96d47560a4e748149f7ecc9bbbbe69b4", - "type": "rate_error", "message": "shipment.options.fulfiller_order_id: Required - and shipment.options.fulfiller_order_items: Required"}, {"carrier": "CourierExpress", - "carrier_account_id": "ca_f18d04c61d2546a68d7cd171960cb0b8", "type": "rate_error", - "message": "shipment.to_address: Courier Express only services the following - states: [''AL'', ''FL'', ''GA'', ''KY'', ''MS'', ''NC'', ''SC'', ''TN'', ''VA'']."}, - {"carrier": "DhlEcs", "carrier_account_id": "ca_0b612c9b7014401b9989db19953a24f9", - "type": "rate_error", "message": "credentials.pickup_id: value is not a valid - integer"}, {"type": "rate_error", "carrier": "Purolator", "message": "shipment.from_address.country: - All shipments must originate in Canada (CA)."}, {"type": "rate_error", "carrier": - "Purolator", "message": "shipment.return_address.country: All shipments must - originate in Canada (CA)."}, {"carrier": "CanadaPost", "carrier_account_id": - "ca_c4d49f6f47c94dfcba93f761f79ad2d8", "type": "rate_error", "message": "[''Unable - to get rates for shipments originating outside of Canada.'']"}, {"carrier": - "LaserShip", "carrier_account_id": "ca_6d2f96c3dfce4c75bd13ee030410ae4d", - "type": "rate_error", "message": "No rates found. The shipment may be outside - of the service area, or you may need to provide your sort codes and rates - to EasyPost."}, {"carrier": "Veho", "carrier_account_id": "ca_e683eaf9405643a8823ef18b4e5f3742", - "type": "rate_error", "message": "shipment.to_address.zip: Can only ship/pickup - within Denver, Dallas-Fort Worth, or Chicago."}, {"carrier": "ColumbusLastMile", - "carrier_account_id": "ca_a4524802c56348d1a274f879bbaf8f78", "type": "rate_error", - "message": "Not a valid destination postal code"}, {"carrier": "Estafeta", - "carrier_account_id": "ca_38a0fca99c294d4d9d789b3a4b660a4b", "type": "rate_error", - "message": "shipment.from_address.street1: street1 must have the format '' '', shipment.from_address.street2: street2 - must have the format ''[] Col. '', - shipment.from_address.country: Only domestic shipments are supported for Estafeta, - shipment.to_address.street1: street1 must have the format '' - '', shipment.to_address.street2: field required, - and shipment.to_address.country: Only domestic shipments are supported for - Estafeta"}, {"carrier": "UPS", "carrier_account_id": "ca_10677005f7e444c299088666025e3cdc", - "type": "rate_error", "message": "Invalid Credentials. Ups Account Number - is required"}, {"carrier": "Newgistics", "carrier_account_id": "ca_3a1b3046cb7943898bea6428237e1e33", - "type": "rate_error", "message": "No rates found. The shipment may be outside - of the service area, or you may need to provide your rates to support."}, - {"carrier": "AxlehireV3", "carrier_account_id": "ca_a381c1bace794c158d59a58b0a94a2e2", - "type": "rate_error", "message": "Forbidden. Please check credentials and - try again"}, {"type": "rate_error", "carrier": "GSO", "message": "the carrier - rejected the request as invalid"}, {"carrier": "FedExSmartPost", "carrier_account_id": - "ca_7d73446c9ded4b8fa67dee03f9f379b6", "type": "rate_error", "message": "FedEx - returned error: Authentication Failed"}, {"carrier": "UPS", "carrier_account_id": - "ca_db930d5251ee4d2d8560a477b3bb1796", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DHLeCommerce", "carrier_account_id": - "ca_bc906eccfedc4e46952feacf2d69d3dc", "type": "rate_error", "message": "the - carrier rejected the request as invalid"}, {"carrier": "DPDUK", "carrier_account_id": - "ca_fd242ecb9ce74e6ea771f25b800055b1", "type": "rate_error", "message": "Unauthorized"}, - {"carrier": "OmniParcel", "carrier_account_id": "ca_2c5768cc85c5420cba30b3b1dd545fbb", - "type": "rate_error", "message": "No rates available."}, {"carrier": "LaserShipV2", - "carrier_account_id": "ca_6e70924a6c6248c2b73bc7c8949e8849", "type": "rate_error", - "message": "shipment.options.dropoff_max_datetime: field required"}], "mode": - "production", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2024-07-09T21:30:06Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_677cb6603e3a11efb55a3cecef1b359e", "object": "Address", "created_at": - "2024-07-09T21:30:03+00:00", "updated_at": "2024-07-09T21:30:03+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "production", - "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": - null, "verifications": {}}, "insurance": null, "order_id": null, "parcel": - {"id": "prcl_1a954596eb2745e3857aa8c4f7c09912", "object": "Parcel", "created_at": - "2024-07-09T21:30:03Z", "updated_at": "2024-07-09T21:30:03Z", "length": 10.0, - "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": - "production"}, "postage_label": null, "rates": [{"id": "rate_447d70a0fa9048c59eff27d809da60e2", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "Priority", "carrier": "UPSMailInnovations", - "rate": "0.01", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": - null, "est_delivery_days": null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_942b62c9d6ea45578a344b365d7aa062"}, {"id": "rate_5593dd9ec41a4d64880ecd88e50e9509", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "ExpeditedMailInnovations", "carrier": "UPSMailInnovations", - "rate": "0.01", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": null, - "est_delivery_days": 3, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_942b62c9d6ea45578a344b365d7aa062"}, {"id": "rate_c1839fd7d0664103973faa8532bdb698", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "DPD10:00", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_a34b9ffcc7dd4b1e85703df78e9ca255", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "DPD12:00", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_64675043324545a59a89892d77d8241a", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "DPD18:00", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_64fbc539f0af448d971fafc53a16f716", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "DPD8:30", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_f114519787f84718ae8b710b77ad8b4f", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "DPDCLASSIC", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_6e8d9ea45af0451c96799732ba3f1c17", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "DPDEXPRESS", "carrier": "DPD", "rate": "0.01", - "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_18e6fef6ef1b40488b46cd1d48bad17a", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "DPDINTERNATIONALMAIL", "carrier": "DPD", - "rate": "0.01", "currency": "EUR", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": - null, "est_delivery_days": null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_54606d57cefb46269808fbcfffec9a1c", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "DPDPARCELLETTER", "carrier": "DPD", "rate": - "0.01", "currency": "EUR", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": null, - "delivery_date": null, "delivery_date_guaranteed": null, "est_delivery_days": - null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_242d840eec7a456abf1eabe77c33bb2c", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "DPDPARCELLETTERPLUS", "carrier": "DPD", - "rate": "0.01", "currency": "EUR", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": - null, "est_delivery_days": null, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa"}, {"id": "rate_4fabca3f216744bcb4b1eff26c4d5214", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "Express", "carrier": "USPS", "rate": "33.10", + string: '{"created_at": "2024-08-15T19:54:17Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-08-15T19:54:18Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_27b7a9d55b4011ef9183ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:54:17+00:00", "updated_at": + "2024-08-15T19:54:17+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_95ad668b2bfb484690164df7c764f27d", "object": + "Parcel", "created_at": "2024-08-15T19:54:17Z", "updated_at": "2024-08-15T19:54:17Z", + "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6ce50dbd84f94d7aa188e5a48af78d78", + "object": "Rate", "created_at": "2024-08-15T19:54:18Z", "updated_at": "2024-08-15T19:54:18Z", + "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_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_8cdd17df6ae64bcab1dc16a15201b867", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "Priority", "carrier": "USPS", "rate": "6.90", + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3eaa43bdbeb84f6f91406249092e5ec2", + "object": "Rate", "created_at": "2024-08-15T19:54:18Z", "updated_at": "2024-08-15T19:54:18Z", + "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_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_003de25f33ee45d6bc5395246367d9ab", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "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_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_42cab00643ae46eaaee923f27ee4cd7b", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "First", "carrier": "USPS", "rate": "5.93", + 2, "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c65e390d405c4a648cba5d000bae75fb", + "object": "Rate", "created_at": "2024-08-15T19:54:18Z", "updated_at": "2024-08-15T19:54: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_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_c1034e8920a3451888b8390d760c90aa", - "object": "Rate", "created_at": "2024-07-09T21:30:05Z", "updated_at": "2024-07-09T21:30:05Z", - "mode": "production", "service": "ParcelSelect", "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_4e96ab8dccd245f1a204f699a1af02bc", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5"}, {"id": "rate_01ef3f137c304013b1da88fec04a4f76", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "DHLParcelExpedited", "carrier": "DhlEcs", - "rate": "6.63", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": null, "list_currency": null, "billing_type": "carrier", - "delivery_days": 5, "delivery_date": "2024-07-15T00:00:00Z", "delivery_date_guaranteed": - false, "est_delivery_days": 5, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_77415c3fbd754d65bb9298e9a69d7084"}, {"id": "rate_2f5ae0b0a9c34d5b8f0f7c334fac3c6f", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "DHLParcelGround", "carrier": "DhlEcs", "rate": - "6.50", "currency": "USD", "retail_rate": null, "retail_currency": null, "list_rate": - null, "list_currency": null, "billing_type": "carrier", "delivery_days": 6, - "delivery_date": "2024-07-15T00:00:00Z", "delivery_date_guaranteed": false, - "est_delivery_days": 6, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_77415c3fbd754d65bb9298e9a69d7084"}, {"id": "rate_a10edbb7a24f47d5af9cbb08052df925", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "FIRST_OVERNIGHT", "carrier": "FedEx", "rate": - "144.42", "currency": "USD", "retail_rate": null, "retail_currency": null, - "list_rate": "144.42", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 1, "delivery_date": "2024-07-10T08:30:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 1, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_c39cfb8b93d546d3bf81fe5b583f9200", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "PRIORITY_OVERNIGHT", "carrier": "FedEx", - "rate": "108.07", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": "108.07", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 1, "delivery_date": "2024-07-10T10:30:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 1, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_4c5d00c1a863403a8d9e48f12d003443", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "STANDARD_OVERNIGHT", "carrier": "FedEx", - "rate": "98.79", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": "98.79", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 1, "delivery_date": "2024-07-10T17:00:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 1, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_edd1b2308b724e678fe1642009ea8cab", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "FEDEX_2_DAY_AM", "carrier": "FedEx", "rate": - "39.63", "currency": "USD", "retail_rate": null, "retail_currency": null, - "list_rate": "39.63", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T10:30:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 2, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_c4e36f128d544655a2b1bfe17e5fa978", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "FEDEX_2_DAY", "carrier": "FedEx", "rate": - "33.39", "currency": "USD", "retail_rate": null, "retail_currency": null, - "list_rate": "33.39", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T17:00:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 2, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_efa1311c5340453da8e73a8858cf0ddf", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "FEDEX_GROUND", "carrier": "FedEx", "rate": - "14.47", "currency": "USD", "retail_rate": null, "retail_currency": null, - "list_rate": "16.67", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T23:59:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 2, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_2b5cd536f6d241cbbfdfa90e33c70b07", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "FEDEX_EXPRESS_SAVER", "carrier": "FedEx", - "rate": "30.32", "currency": "USD", "retail_rate": null, "retail_currency": - null, "list_rate": "30.32", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 3, "delivery_date": "2024-07-12T17:00:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 3, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc"}, {"id": "rate_e2d441f20d5c48d0a3b316bc74830e55", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "NextDayAir", "carrier": "UPS", "rate": "89.07", - "currency": "USD", "retail_rate": "89.07", "retail_currency": "USD", "list_rate": - "102.19", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 1, "delivery_date": "2024-07-10T10:30:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 1, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_9a838869057a4e7286285f0bb155d750", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "2ndDayAir", "carrier": "UPS", "rate": "29.64", - "currency": "USD", "retail_rate": "29.64", "retail_currency": "USD", "list_rate": - "31.84", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T23:00:00Z", "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_eb3aa5a8eced4f62b8133845b7569f6a", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "Ground", "carrier": "UPS", "rate": "14.88", - "currency": "USD", "retail_rate": "14.88", "retail_currency": "USD", "list_rate": - "15.85", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T23:00:00Z", "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_9bb3b0b10b9341fdaa602c2c655dffe4", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "3DaySelect", "carrier": "UPS", "rate": "22.60", - "currency": "USD", "retail_rate": "22.60", "retail_currency": "USD", "list_rate": - "25.10", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 3, "delivery_date": "2024-07-12T23:00:00Z", "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_3b702b8de82f439390d3d7dcb9a63711", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "NextDayAirSaver", "carrier": "UPS", "rate": - "83.84", "currency": "USD", "retail_rate": "83.84", "retail_currency": "USD", - "list_rate": "93.40", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 1, "delivery_date": "2024-07-10T23:00:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 1, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_89b5bae791f44428bd969d46a35a018c", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "NextDayAirEarlyAM", "carrier": "UPS", "rate": - "124.09", "currency": "USD", "retail_rate": "124.09", "retail_currency": "USD", - "list_rate": "137.22", "list_currency": "USD", "billing_type": "carrier", - "delivery_days": 1, "delivery_date": "2024-07-10T08:00:00Z", "delivery_date_guaranteed": - true, "est_delivery_days": 1, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}, {"id": "rate_570d7a3c77b644e6a4a839434c80b34b", - "object": "Rate", "created_at": "2024-07-09T21:30:06Z", "updated_at": "2024-07-09T21:30:06Z", - "mode": "production", "service": "2ndDayAirAM", "carrier": "UPS", "rate": - "33.57", "currency": "USD", "retail_rate": "33.57", "retail_currency": "USD", - "list_rate": "35.84", "list_currency": "USD", "billing_type": "carrier", "delivery_days": - 2, "delivery_date": "2024-07-11T10:30:00Z", "delivery_date_guaranteed": true, - "est_delivery_days": 2, "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c"}], "refund_status": - null, "scan_form": null, "selected_rate": null, "tracker": null, "to_address": - {"id": "adr_6779b0e73e3a11efb5593cecef1b359e", "object": "Address", "created_at": - "2024-07-09T21:30:03+00:00", "updated_at": "2024-07-09T21:30:03+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "production", "carrier_facility": + 3, "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_27b51e295b4011efaf973cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:17+00:00", "updated_at": + "2024-08-15T19:54:17+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_27b7a9d55b4011ef9183ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:54:17+00:00", "updated_at": "2024-08-15T19:54:17+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_677cb6603e3a11efb55a3cecef1b359e", - "object": "Address", "created_at": "2024-07-09T21:30:03+00:00", "updated_at": - "2024-07-09T21:30:03+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "production", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_6779b0e73e3a11efb5593cecef1b359e", "object": "Address", "created_at": - "2024-07-09T21:30:03+00:00", "updated_at": "2024-07-09T21:30:03+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + {}}, "buyer_address": {"id": "adr_27b51e295b4011efaf973cecef1b359e", "object": + "Address", "created_at": "2024-08-15T19:54:17+00:00", "updated_at": "2024-08-15T19:54:17+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "production", "carrier_facility": + "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_4e96ab8dccd245f1a204f699a1af02bc", + {}}, "forms": [], "fees": [], "id": "shp_5032c25541b34c509bcb91d44d771828", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '25921' + - '5804' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_4e96ab8dccd245f1a204f699a1af02bc + - /api/v2/shipments/shp_5032c25541b34c509bcb91d44d771828 pragma: - no-cache referrer-policy: @@ -383,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 6754031e668dabdbe2ba0375002b913b + - 62c1f5d666be5ce9e788626900177020 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '2.646610' + - '0.814040' x-version-label: - - easypost-202407092027-324ee50b5a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -416,350 +161,46 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_4e96ab8dccd245f1a204f699a1af02bc/smartrate/precision_shipping?desired_delivery_date=2024-07-16 + uri: https://api.easypost.com/v2/shipments/shp_5032c25541b34c509bcb91d44d771828/smartrate/precision_shipping?desired_delivery_date=2024-08-18 response: body: string: '{"rates": [{"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": - 3, "percentile_75": 4, "percentile_85": 4, "percentile_90": 5, "percentile_95": - 5, "percentile_97": 6, "percentile_99": 7}, "delivery_date_confidence": 0.57, - "desired_delivery_date": "2024-07-16", "estimated_transit_days": 3, "ship_on_date": - "2024-07-13"}, "rate": {"carrier": "UPSMailInnovations", "carrier_account_id": - "ca_942b62c9d6ea45578a344b365d7aa062", "created_at": "2024-07-09T21:30:05Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_447d70a0fa9048c59eff27d809da60e2", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "Priority", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 4, "percentile_75": 4, "percentile_85": 5, "percentile_90": - 5, "percentile_95": 6, "percentile_97": 6, "percentile_99": 7}, "delivery_date_confidence": - 0.31, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 3, - "ship_on_date": "2024-07-13"}, "rate": {"carrier": "UPSMailInnovations", "carrier_account_id": - "ca_942b62c9d6ea45578a344b365d7aa062", "created_at": "2024-07-09T21:30:05Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_5593dd9ec41a4d64880ecd88e50e9509", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "ExpeditedMailInnovations", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPD10:00 combination is not supported by - the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:30:05Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_c1839fd7d0664103973faa8532bdb698", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPD10:00", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": {"error": "Carrier - DPD and service DPD12:00 combination is not supported by the Easypost Smartrate - AI"}, "rate": {"carrier": "DPD", "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", - "created_at": "2024-07-09T21:30:05Z", "currency": "EUR", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_a34b9ffcc7dd4b1e85703df78e9ca255", "list_currency": null, - "list_rate": null, "mode": "production", "object": "Rate", "rate": 0.01, "retail_currency": - null, "retail_rate": null, "service": "DPD12:00", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPD18:00 combination is not supported by - the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:30:05Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_64675043324545a59a89892d77d8241a", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPD18:00", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": {"error": "Carrier - DPD and service DPD8:30 combination is not supported by the Easypost Smartrate - AI"}, "rate": {"carrier": "DPD", "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", - "created_at": "2024-07-09T21:30:05Z", "currency": "EUR", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_64fbc539f0af448d971fafc53a16f716", "list_currency": null, - "list_rate": null, "mode": "production", "object": "Rate", "rate": 0.01, "retail_currency": - null, "retail_rate": null, "service": "DPD8:30", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPDCLASSIC combination is not supported - by the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:30:05Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_f114519787f84718ae8b710b77ad8b4f", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPDCLASSIC", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": {"error": "Carrier - DPD and service DPDEXPRESS combination is not supported by the Easypost Smartrate - AI"}, "rate": {"carrier": "DPD", "carrier_account_id": "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", - "created_at": "2024-07-09T21:30:05Z", "currency": "EUR", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_6e8d9ea45af0451c96799732ba3f1c17", "list_currency": null, - "list_rate": null, "mode": "production", "object": "Rate", "rate": 0.01, "retail_currency": - null, "retail_rate": null, "service": "DPDEXPRESS", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPDINTERNATIONALMAIL combination is not - supported by the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:30:05Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_18e6fef6ef1b40488b46cd1d48bad17a", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPDINTERNATIONALMAIL", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPDPARCELLETTER combination is not supported - by the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:30:05Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_54606d57cefb46269808fbcfffec9a1c", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPDPARCELLETTER", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": - {"error": "Carrier DPD and service DPDPARCELLETTERPLUS combination is not - supported by the Easypost Smartrate AI"}, "rate": {"carrier": "DPD", "carrier_account_id": - "ca_d8c3565dd56346d9a5e90bd56ba7c2fa", "created_at": "2024-07-09T21:30:05Z", - "currency": "EUR", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": null, "est_delivery_days": null, "id": "rate_242d840eec7a456abf1eabe77c33bb2c", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 0.01, "retail_currency": null, "retail_rate": null, "service": - "DPDPARCELLETTERPLUS", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 7}, "delivery_date_confidence": 0.47, "desired_delivery_date": "2024-07-16", - "estimated_transit_days": 1, "ship_on_date": "2024-07-15"}, "rate": {"carrier": - "USPS", "carrier_account_id": "ca_4fcd9a658b494a979793bb899a40c5b5", "created_at": - "2024-07-09T21:30:05Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_4fabca3f216744bcb4b1eff26c4d5214", - "list_currency": "USD", "list_rate": 33.1, "mode": "production", "object": - "Rate", "rate": 33.1, "retail_currency": "USD", "retail_rate": 37.9, "service": - "Express", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 2, "percentile_75": 3, "percentile_85": 4, "percentile_90": - 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": 7}, "delivery_date_confidence": - 0.19, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 3, - "ship_on_date": "2024-07-13"}, "rate": {"carrier": "USPS", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5", "created_at": "2024-07-09T21:30:05Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 2, "est_delivery_days": 2, "id": "rate_8cdd17df6ae64bcab1dc16a15201b867", - "list_currency": "USD", "list_rate": 8.25, "mode": "production", "object": - "Rate", "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": - "Priority", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 2, "percentile_75": 3, "percentile_85": 4, "percentile_90": - 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": 9}, "delivery_date_confidence": - 0.21, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 3, - "ship_on_date": "2024-07-13"}, "rate": {"carrier": "USPS", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5", "created_at": "2024-07-09T21:30:05Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_003de25f33ee45d6bc5395246367d9ab", - "list_currency": "USD", "list_rate": 6.4, "mode": "production", "object": - "Rate", "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.45, "service": - "GroundAdvantage", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 2, "percentile_75": 3, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 9}, "delivery_date_confidence": 0.21, "desired_delivery_date": "2024-07-16", - "estimated_transit_days": 3, "ship_on_date": "2024-07-13"}, "rate": {"carrier": - "USPS", "carrier_account_id": "ca_4fcd9a658b494a979793bb899a40c5b5", "created_at": - "2024-07-09T21:30:05Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_42cab00643ae46eaaee923f27ee4cd7b", - "list_currency": "USD", "list_rate": 6.4, "mode": "production", "object": - "Rate", "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.45, "service": - "First", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 2, "percentile_75": 3, "percentile_85": 4, "percentile_90": - 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": 9}, "delivery_date_confidence": - 0.21, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 3, - "ship_on_date": "2024-07-13"}, "rate": {"carrier": "USPS", "carrier_account_id": - "ca_4fcd9a658b494a979793bb899a40c5b5", "created_at": "2024-07-09T21:30:05Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_c1034e8920a3451888b8390d760c90aa", - "list_currency": "USD", "list_rate": 6.4, "mode": "production", "object": - "Rate", "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.45, "service": - "ParcelSelect", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:05Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": - 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": 6}, "delivery_date_confidence": - 0.82, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 4, - "ship_on_date": "2024-07-12"}, "rate": {"carrier": "DhlEcs", "carrier_account_id": - "ca_77415c3fbd754d65bb9298e9a69d7084", "created_at": "2024-07-09T21:30:06Z", - "currency": "USD", "delivery_date": "2024-07-15T00:00:00Z", "delivery_date_guaranteed": - false, "delivery_days": 5, "est_delivery_days": 5, "id": "rate_01ef3f137c304013b1da88fec04a4f76", - "list_currency": null, "list_rate": null, "mode": "production", "object": - "Rate", "rate": 6.63, "retail_currency": null, "retail_rate": null, "service": - "DHLParcelExpedited", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": + 1, "percentile_75": 3, "percentile_85": 3, "percentile_90": 4, "percentile_95": + 4, "percentile_97": 5, "percentile_99": 7}, "delivery_date_confidence": 0.01, + "desired_delivery_date": "2024-08-18", "estimated_transit_days": 2, "ship_on_date": + "2024-08-16"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2024-08-15T19:54:18Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": + 1, "id": "rate_6ce50dbd84f94d7aa188e5a48af78d78", "list_currency": "USD", + "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": + "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", + "updated_at": "2024-08-15T19:54:18Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 5, "percentile_95": 6, "percentile_97": 6, "percentile_99": - 7}, "delivery_date_confidence": 0.76, "desired_delivery_date": "2024-07-16", - "estimated_transit_days": 4, "ship_on_date": "2024-07-12"}, "rate": {"carrier": - "DhlEcs", "carrier_account_id": "ca_77415c3fbd754d65bb9298e9a69d7084", "created_at": - "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": "2024-07-15T00:00:00Z", - "delivery_date_guaranteed": false, "delivery_days": 6, "est_delivery_days": - 6, "id": "rate_2f5ae0b0a9c34d5b8f0f7c334fac3c6f", "list_currency": null, "list_rate": - null, "mode": "production", "object": "Rate", "rate": 6.5, "retail_currency": - null, "retail_rate": null, "service": "DHLParcelGround", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 1, "percentile_85": - 1, "percentile_90": 1, "percentile_95": 2, "percentile_97": 2, "percentile_99": - 2}, "delivery_date_confidence": 0.94, "desired_delivery_date": "2024-07-16", - "estimated_transit_days": 1, "ship_on_date": "2024-07-15"}, "rate": {"carrier": - "FedEx", "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", "created_at": - "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": "2024-07-10T08:30:00Z", - "delivery_date_guaranteed": true, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_a10edbb7a24f47d5af9cbb08052df925", "list_currency": "USD", - "list_rate": 144.42, "mode": "production", "object": "Rate", "rate": 144.42, - "retail_currency": null, "retail_rate": null, "service": "FIRST_OVERNIGHT", - "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": "2024-07-09T21:30:06Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 1, - "percentile_75": 1, "percentile_85": 1, "percentile_90": 1, "percentile_95": - 2, "percentile_97": 2, "percentile_99": 2}, "delivery_date_confidence": 0.94, - "desired_delivery_date": "2024-07-16", "estimated_transit_days": 1, "ship_on_date": - "2024-07-15"}, "rate": {"carrier": "FedEx", "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", - "created_at": "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": - "2024-07-10T10:30:00Z", "delivery_date_guaranteed": true, "delivery_days": - 1, "est_delivery_days": 1, "id": "rate_c39cfb8b93d546d3bf81fe5b583f9200", - "list_currency": "USD", "list_rate": 108.07, "mode": "production", "object": - "Rate", "rate": 108.07, "retail_currency": null, "retail_rate": null, "service": - "PRIORITY_OVERNIGHT", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 1, "percentile_85": - 1, "percentile_90": 1, "percentile_95": 2, "percentile_97": 2, "percentile_99": - 2}, "delivery_date_confidence": 0.93, "desired_delivery_date": "2024-07-16", - "estimated_transit_days": 1, "ship_on_date": "2024-07-15"}, "rate": {"carrier": - "FedEx", "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", "created_at": - "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": "2024-07-10T17:00:00Z", - "delivery_date_guaranteed": true, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_4c5d00c1a863403a8d9e48f12d003443", "list_currency": "USD", - "list_rate": 98.79, "mode": "production", "object": "Rate", "rate": 98.79, - "retail_currency": null, "retail_rate": null, "service": "STANDARD_OVERNIGHT", - "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": "2024-07-09T21:30:06Z"}}, + 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 8}, "delivery_date_confidence": 0.0, "desired_delivery_date": "2024-08-18", + "estimated_transit_days": 3, "ship_on_date": "2024-08-15"}, "rate": {"carrier": + "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2024-08-15T19:54:18Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_3eaa43bdbeb84f6f91406249092e5ec2", + "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", + "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", + "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", "updated_at": "2024-08-15T19:54:18Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 5, "percentile_99": 5}, "delivery_date_confidence": 0.83, - "desired_delivery_date": "2024-07-16", "estimated_transit_days": 4, "ship_on_date": - "2024-07-12"}, "rate": {"carrier": "FedEx", "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", - "created_at": "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": - "2024-07-11T10:30:00Z", "delivery_date_guaranteed": true, "delivery_days": - 2, "est_delivery_days": 2, "id": "rate_edd1b2308b724e678fe1642009ea8cab", - "list_currency": "USD", "list_rate": 39.63, "mode": "production", "object": - "Rate", "rate": 39.63, "retail_currency": null, "retail_rate": null, "service": - "FEDEX_2_DAY_AM", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 3, "percentile_75": 3, "percentile_85": 3, "percentile_90": - 3, "percentile_95": 4, "percentile_97": 4, "percentile_99": 4}, "delivery_date_confidence": - 0.64, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 3, - "ship_on_date": "2024-07-13"}, "rate": {"carrier": "FedEx", "carrier_account_id": - "ca_3bd616120603457fbed9deb1e425bbdc", "created_at": "2024-07-09T21:30:06Z", - "currency": "USD", "delivery_date": "2024-07-11T17:00:00Z", "delivery_date_guaranteed": - true, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_c4e36f128d544655a2b1bfe17e5fa978", - "list_currency": "USD", "list_rate": 33.39, "mode": "production", "object": - "Rate", "rate": 33.39, "retail_currency": null, "retail_rate": null, "service": - "FEDEX_2_DAY", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 4, "percentile_75": 4, "percentile_85": 5, "percentile_90": - 5, "percentile_95": 5, "percentile_97": 5, "percentile_99": 6}, "delivery_date_confidence": - 0.5, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 4, "ship_on_date": - "2024-07-12"}, "rate": {"carrier": "FedEx", "carrier_account_id": "ca_3bd616120603457fbed9deb1e425bbdc", - "created_at": "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": - "2024-07-11T23:59:00Z", "delivery_date_guaranteed": true, "delivery_days": - 2, "est_delivery_days": 2, "id": "rate_efa1311c5340453da8e73a8858cf0ddf", - "list_currency": "USD", "list_rate": 16.67, "mode": "production", "object": - "Rate", "rate": 14.47, "retail_currency": null, "retail_rate": null, "service": - "FEDEX_GROUND", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 3, "percentile_75": 4, "percentile_85": 4, "percentile_90": - 4, "percentile_95": 4, "percentile_97": 5, "percentile_99": 5}, "delivery_date_confidence": - 0.62, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 3, - "ship_on_date": "2024-07-13"}, "rate": {"carrier": "FedEx", "carrier_account_id": - "ca_3bd616120603457fbed9deb1e425bbdc", "created_at": "2024-07-09T21:30:06Z", - "currency": "USD", "delivery_date": "2024-07-12T17:00:00Z", "delivery_date_guaranteed": - true, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_2b5cd536f6d241cbbfdfa90e33c70b07", - "list_currency": "USD", "list_rate": 30.32, "mode": "production", "object": - "Rate", "rate": 30.32, "retail_currency": null, "retail_rate": null, "service": - "FEDEX_EXPRESS_SAVER", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 1, "percentile_85": - 1, "percentile_90": 1, "percentile_95": 2, "percentile_97": 2, "percentile_99": - 2}, "delivery_date_confidence": 0.93, "desired_delivery_date": "2024-07-16", - "estimated_transit_days": 1, "ship_on_date": "2024-07-15"}, "rate": {"carrier": - "UPS", "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", "created_at": - "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": "2024-07-10T10:30:00Z", - "delivery_date_guaranteed": true, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_e2d441f20d5c48d0a3b316bc74830e55", "list_currency": "USD", - "list_rate": 102.19, "mode": "production", "object": "Rate", "rate": 89.07, - "retail_currency": "USD", "retail_rate": 89.07, "service": "NextDayAir", "shipment_id": - "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": "2024-07-09T21:30:06Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, - "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 4, "percentile_97": 5, "percentile_99": 5}, "delivery_date_confidence": 0.94, - "desired_delivery_date": "2024-07-16", "estimated_transit_days": 4, "ship_on_date": - "2024-07-12"}, "rate": {"carrier": "UPS", "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", - "created_at": "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": - "2024-07-11T23:00:00Z", "delivery_date_guaranteed": false, "delivery_days": - 2, "est_delivery_days": 2, "id": "rate_9a838869057a4e7286285f0bb155d750", - "list_currency": "USD", "list_rate": 31.84, "mode": "production", "object": - "Rate", "rate": 29.64, "retail_currency": "USD", "retail_rate": 29.64, "service": - "2ndDayAir", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": - 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": 5}, "delivery_date_confidence": - 0.91, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 4, - "ship_on_date": "2024-07-12"}, "rate": {"carrier": "UPS", "carrier_account_id": - "ca_754d3e2bce354edfb2e4a3fcc21bb02c", "created_at": "2024-07-09T21:30:06Z", - "currency": "USD", "delivery_date": "2024-07-11T23:00:00Z", "delivery_date_guaranteed": - false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_eb3aa5a8eced4f62b8133845b7569f6a", - "list_currency": "USD", "list_rate": 15.85, "mode": "production", "object": - "Rate", "rate": 14.88, "retail_currency": "USD", "retail_rate": 14.88, "service": - "Ground", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 4, "percentile_75": 5, "percentile_85": 5, "percentile_90": - 5, "percentile_95": 5, "percentile_97": 5, "percentile_99": 5}, "delivery_date_confidence": - 0.66, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 4, - "ship_on_date": "2024-07-12"}, "rate": {"carrier": "UPS", "carrier_account_id": - "ca_754d3e2bce354edfb2e4a3fcc21bb02c", "created_at": "2024-07-09T21:30:06Z", - "currency": "USD", "delivery_date": "2024-07-12T23:00:00Z", "delivery_date_guaranteed": - false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_9bb3b0b10b9341fdaa602c2c655dffe4", - "list_currency": "USD", "list_rate": 25.1, "mode": "production", "object": - "Rate", "rate": 22.6, "retail_currency": "USD", "retail_rate": 22.6, "service": - "3DaySelect", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": - {"percentile_50": 1, "percentile_75": 1, "percentile_85": 1, "percentile_90": - 1, "percentile_95": 2, "percentile_97": 2, "percentile_99": 2}, "delivery_date_confidence": - 0.93, "desired_delivery_date": "2024-07-16", "estimated_transit_days": 1, - "ship_on_date": "2024-07-15"}, "rate": {"carrier": "UPS", "carrier_account_id": - "ca_754d3e2bce354edfb2e4a3fcc21bb02c", "created_at": "2024-07-09T21:30:06Z", - "currency": "USD", "delivery_date": "2024-07-10T23:00:00Z", "delivery_date_guaranteed": - true, "delivery_days": 1, "est_delivery_days": 1, "id": "rate_3b702b8de82f439390d3d7dcb9a63711", - "list_currency": "USD", "list_rate": 93.4, "mode": "production", "object": - "Rate", "rate": 83.84, "retail_currency": "USD", "retail_rate": 83.84, "service": - "NextDayAirSaver", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", - "updated_at": "2024-07-09T21:30:06Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 1, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 2, "percentile_99": - 2}, "delivery_date_confidence": 0.84, "desired_delivery_date": "2024-07-16", - "estimated_transit_days": 1, "ship_on_date": "2024-07-15"}, "rate": {"carrier": - "UPS", "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", "created_at": - "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": "2024-07-10T08:00:00Z", - "delivery_date_guaranteed": true, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_89b5bae791f44428bd969d46a35a018c", "list_currency": "USD", - "list_rate": 137.22, "mode": "production", "object": "Rate", "rate": 124.09, - "retail_currency": "USD", "retail_rate": 124.09, "service": "NextDayAirEarlyAM", - "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": "2024-07-09T21:30:06Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, - "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 4, "percentile_97": 5, "percentile_99": 5}, "delivery_date_confidence": 0.92, - "desired_delivery_date": "2024-07-16", "estimated_transit_days": 4, "ship_on_date": - "2024-07-12"}, "rate": {"carrier": "UPS", "carrier_account_id": "ca_754d3e2bce354edfb2e4a3fcc21bb02c", - "created_at": "2024-07-09T21:30:06Z", "currency": "USD", "delivery_date": - "2024-07-11T10:30:00Z", "delivery_date_guaranteed": true, "delivery_days": - 2, "est_delivery_days": 2, "id": "rate_570d7a3c77b644e6a4a839434c80b34b", - "list_currency": "USD", "list_rate": 35.84, "mode": "production", "object": - "Rate", "rate": 33.57, "retail_currency": "USD", "retail_rate": 33.57, "service": - "2ndDayAirAM", "shipment_id": "shp_4e96ab8dccd245f1a204f699a1af02bc", "updated_at": - "2024-07-09T21:30:06Z"}}]}' + 5, "percentile_97": 6, "percentile_99": 8}, "delivery_date_confidence": 0.0, + "desired_delivery_date": "2024-08-18", "estimated_transit_days": 3, "ship_on_date": + "2024-08-15"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2024-08-15T19:54:18Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_c65e390d405c4a648cba5d000bae75fb", "list_currency": "USD", + "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", + "updated_at": "2024-08-15T19:54:18Z"}}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '25364' + - '2463' content-type: - application/json; charset=utf-8 expires: @@ -779,20 +220,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 6754031e668dabdee2ba0375002b94ae + - 62c1f5d666be5ceae7886269001770eb x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.260569' + - '0.147248' x-version-label: - - easypost-202407092027-324ee50b5a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_refund.yaml b/tests/cassettes/test_shipment_refund.yaml index d2674719..49d29638 100644 --- a/tests/cassettes/test_shipment_refund.yaml +++ b/tests/cassettes/test_shipment_refund.yaml @@ -6,7 +6,7 @@ interactions: {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], + 15.4}, "service": "GroundAdvantage", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], "carrier": "USPS"}}' headers: Accept: @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '596' + - '606' Content-Type: - application/json authorization: @@ -27,77 +27,64 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:09:01Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:54:01Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285876688", "updated_at": "2023-11-28T22:09:01Z", "batch_id": + "9400100105807075743012", "updated_at": "2024-08-15T19:54:02Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_bc1e777f8e3a11eebfff3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+00:00", "name": + {"id": "adr_1e5451d45b4011ef8d5fac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_2fff4c9de8b94e87b5fe3695ab26170c", - "object": "Parcel", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fb8322d78d844972b005ef74f0c6871f", + "object": "Parcel", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_dfd9ecc487fd4b6cac8537ec8d034f4c", - "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:01Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_93bb4db9efcc44a187d5661dfb2fe528", + "created_at": "2024-08-15T19:54:02Z", "updated_at": "2024-08-15T19:54:02Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:02Z", "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/20231128/e8f79b2746f1364b25992e9d0773e80865.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e80f5700cc639748f9b21a8dee016dd4aa.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_c9ddbd41f24749518982a5109fd1fd73", "object": - "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f2bd1a965bca4a14937a2b05f12f4411", "object": + "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", + "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_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5042c3e74cd54246aacaa33366712911", - "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + 2, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e84c745e21ab42e78cc2d42ea8f90748", + "object": "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_181bf834d1c042c0a2d88620755ffb97", - "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_8cc7cfae05774b3e9d6cf20095f3b809", "object": "Rate", "created_at": - "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_31b8df30fc3d42248ffc45b849f808f8", "object": "Rate", "created_at": - "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_181bf834d1c042c0a2d88620755ffb97", - "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_c1a24bdb11a34f30bf82b15a74cbd1bc", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285876688", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-11-28T22:09:01Z", "updated_at": - "2023-11-28T22:09:01Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier": "USPS", + 3, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6f0ee2b9a4354def82e94eb392af483f", + "object": "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_e84c745e21ab42e78cc2d42ea8f90748", "object": + "Rate", "created_at": "2024-08-15T19:54:02Z", "updated_at": "2024-08-15T19:54:02Z", + "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_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b232ceb8d3e344e18c039a4355e3903b", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743012", + "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:54:02Z", + "updated_at": "2024-08-15T19:54:02Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2MxYTI0YmRiMTFhMzRmMzBiZjgyYjE1YTc0Y2JkMWJj"}, - "to_address": {"id": "adr_bc1bc77d8e3a11eebffd3cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+00:00", + "https://track.easypost.com/djE6dHJrX2IyMzJjZWI4ZDNlMzQ0ZTE4YzAzOWE0MzU1ZTM5MDNi"}, + "to_address": {"id": "adr_1e51d26c5b4011efab523cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -105,15 +92,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_bc1e777f8e3a11eebfff3cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:09:01+00:00", "updated_at": - "2023-11-28T22:09:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_1e5451d45b4011ef8d5fac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:54:01+00:00", "updated_at": + "2024-08-15T19:54:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_bc1bc77d8e3a11eebffd3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+00:00", "name": + "adr_1e51d26c5b4011efab523cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -123,19 +110,19 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "object": + "refunded": false}], "id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7526' + - '6456' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_9127f47afd6d4b488beaeaa38e485bfc + - /api/v2/shipments/shp_eaf1958ba61e4ab88129ecf0859f87e3 pragma: - no-cache referrer-policy: @@ -151,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b93656664fce78a9c73003f668e + - 62c1f5d666be5cd9e788624600175fe0 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.976059' + - '1.023661' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -188,83 +175,70 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_9127f47afd6d4b488beaeaa38e485bfc/refund + uri: https://api.easypost.com/v2/shipments/shp_eaf1958ba61e4ab88129ecf0859f87e3/refund response: body: - string: '{"created_at": "2023-11-28T22:09:01Z", "is_return": false, "messages": + string: '{"created_at": "2024-08-15T19:54:01Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105442285876688", "updated_at": "2023-11-28T22:09:02Z", "batch_id": + "9400100105807075743012", "updated_at": "2024-08-15T19:54:02Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_bc1e777f8e3a11eebfff3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+00:00", "name": + {"id": "adr_1e5451d45b4011ef8d5fac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_2fff4c9de8b94e87b5fe3695ab26170c", - "object": "Parcel", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fb8322d78d844972b005ef74f0c6871f", + "object": "Parcel", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_dfd9ecc487fd4b6cac8537ec8d034f4c", - "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:01Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_93bb4db9efcc44a187d5661dfb2fe528", + "created_at": "2024-08-15T19:54:02Z", "updated_at": "2024-08-15T19:54:02Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:02Z", "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/20231128/e8f79b2746f1364b25992e9d0773e80865.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e80f5700cc639748f9b21a8dee016dd4aa.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_c9ddbd41f24749518982a5109fd1fd73", "object": - "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f2bd1a965bca4a14937a2b05f12f4411", "object": + "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", + "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_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5042c3e74cd54246aacaa33366712911", - "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + 2, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e84c745e21ab42e78cc2d42ea8f90748", + "object": "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_181bf834d1c042c0a2d88620755ffb97", - "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_8cc7cfae05774b3e9d6cf20095f3b809", "object": "Rate", "created_at": - "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_31b8df30fc3d42248ffc45b849f808f8", "object": "Rate", "created_at": - "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_181bf834d1c042c0a2d88620755ffb97", - "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_c1a24bdb11a34f30bf82b15a74cbd1bc", "object": "Tracker", - "mode": "test", "tracking_code": "9400100105442285876688", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-11-28T22:09:02Z", "updated_at": - "2023-11-28T22:09:02Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-11-28T22:09:02Z", "shipment_id": "shp_9127f47afd6d4b488beaeaa38e485bfc", + 3, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6f0ee2b9a4354def82e94eb392af483f", + "object": "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": "submitted", "scan_form": + null, "selected_rate": {"id": "rate_e84c745e21ab42e78cc2d42ea8f90748", "object": + "Rate", "created_at": "2024-08-15T19:54:02Z", "updated_at": "2024-08-15T19:54:02Z", + "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_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b232ceb8d3e344e18c039a4355e3903b", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743012", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:02Z", + "updated_at": "2024-08-15T19:54:02Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:02Z", "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-28T22:09:02Z", "source": + "status_detail": "status_update", "datetime": "2024-07-15T19:54:02Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-10-29T10:46:02Z", "source": + "status_detail": "status_update", "datetime": "2024-07-16T08:31:02Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -273,9 +247,9 @@ interactions: {"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/djE6dHJrX2MxYTI0YmRiMTFhMzRmMzBiZjgyYjE1YTc0Y2JkMWJj"}, - "to_address": {"id": "adr_bc1bc77d8e3a11eebffd3cecef1b359e", "object": "Address", - "created_at": "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2IyMzJjZWI4ZDNlMzQ0ZTE4YzAzOWE0MzU1ZTM5MDNi"}, + "to_address": {"id": "adr_1e51d26c5b4011efab523cecef1b359e", "object": "Address", + "created_at": "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -283,15 +257,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_bc1e777f8e3a11eebfff3cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:09:01+00:00", "updated_at": - "2023-11-28T22:09:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_1e5451d45b4011ef8d5fac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:54:01+00:00", "updated_at": + "2024-08-15T19:54:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_bc1bc77d8e3a11eebffd3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+00:00", "name": + "adr_1e51d26c5b4011efab523cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -301,13 +275,13 @@ interactions: "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "object": + "refunded": false}], "id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8663' + - '7593' content-type: - application/json; charset=utf-8 expires: @@ -327,20 +301,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b93656664fee78a9c73003f6769 + - 62c1f5d666be5cdae788624600176111 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.194430' + - '0.173737' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_regenerate_rates.yaml b/tests/cassettes/test_shipment_regenerate_rates.yaml index 73bc96d8..7e93a101 100644 --- a/tests/cassettes/test_shipment_regenerate_rates.yaml +++ b/tests/cassettes/test_shipment_regenerate_rates.yaml @@ -31,111 +31,106 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:08:53Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + string: '{"created_at": "2024-08-15T19:53:53Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": null, "updated_at": - "2023-11-28T22:08:54Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_e78d3719dfb142bd8dfa8e1be7df6c8d", "object": - "CustomsInfo", "created_at": "2023-11-28T22:08:53Z", "updated_at": "2023-11-28T22:08:53Z", - "contents_explanation": "", "contents_type": "merchandise", "customs_certify": - true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": - "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_458af35aaf284ab5933e90803e2984f3", - "object": "CustomsItem", "created_at": "2023-11-28T22:08:53Z", "updated_at": - "2023-11-28T22:08:53Z", "description": "Sweet shirts", "hs_tariff_number": - "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": - 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, - "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_b7b660f38e3a11ee88c2ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:08:53+00:00", "updated_at": "2023-11-28T22:08:53+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + null, "updated_at": "2024-08-15T19:53:54Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_331126213bfd4aabb642c70f13e4b462", + "object": "CustomsInfo", "created_at": "2024-08-15T19:53:53Z", "updated_at": + "2024-08-15T19:53:53Z", "contents_explanation": "", "contents_type": "merchandise", + "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI + 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, + "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": + [{"id": "cstitem_9ce699a5ea3146419b6390f86526060b", "object": "CustomsItem", + "created_at": "2024-08-15T19:53:53Z", "updated_at": "2024-08-15T19:53:53Z", + "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": + "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": + "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": + null}]}, "from_address": {"id": "adr_19bb6b285b4011ef8b57ac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:53:53+00:00", "updated_at": "2024-08-15T19:53:53+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b1469c52727940c6bb938bc944e13910", - "object": "Parcel", "created_at": "2023-11-28T22:08:53Z", "updated_at": "2023-11-28T22:08:53Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_135f339643d34b029a2fcee972a9f4e7", + "object": "Parcel", "created_at": "2024-08-15T19:53:53Z", "updated_at": "2024-08-15T19:53:53Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_7b9774bcb9964971a8db086c372cfba4", - "object": "Rate", "created_at": "2023-11-28T22:08:53Z", "updated_at": "2023-11-28T22:08:53Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3baab18360f44cf3b4de9fd40bd7ac8e", - "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_f22d0b552eaa4aa5be8d797b17d20577", + "object": "Rate", "created_at": "2024-08-15T19:53:54Z", "updated_at": "2024-08-15T19:53:54Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_25fdee81d4c5453596e6d73b3a9aa94e", + "object": "Rate", "created_at": "2024-08-15T19:53:54Z", "updated_at": "2024-08-15T19:53:54Z", + "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_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_16c8de6aebef48388537e00040a37414", - "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", + 2, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5c3569bd98be4606a5c8100cc5e077e0", + "object": "Rate", "created_at": "2024-08-15T19:53:54Z", "updated_at": "2024-08-15T19:53:54Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b35e1ed2d47040f3a0cca86e74f58c6c", - "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7d64e38760a347198da4d8a275ef3cf2", "object": "Rate", "created_at": - "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_b7b46f2a8e3a11eebd743cecef1b359e", "object": - "Address", "created_at": "2023-11-28T22:08:53+00:00", "updated_at": "2023-11-28T22:08:53+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_b7b660f38e3a11ee88c2ac1f6bc539aa", - "object": "Address", "created_at": "2023-11-28T22:08:53+00:00", "updated_at": - "2023-11-28T22:08:53+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_19b8b0cb5b4011ef8b56ac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:53:53+00:00", "updated_at": + "2024-08-15T19:53:53+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_b7b46f2a8e3a11eebd743cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:08:53+00:00", "updated_at": "2023-11-28T22:08:53+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_19bb6b285b4011ef8b57ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-15T19:53:53+00:00", "updated_at": "2024-08-15T19:53:53+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_19b8b0cb5b4011ef8b56ac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:53:53+00:00", "updated_at": "2024-08-15T19:53:53+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_6d4682467fe24164934e5c5f1da503ac", + {}}, "forms": [], "fees": [], "id": "shp_27faf462ff594b42a8aa0750f52c4d05", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7265' + - '6912' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_6d4682467fe24164934e5c5f1da503ac + - /api/v2/shipments/shp_27faf462ff594b42a8aa0750f52c4d05 pragma: - no-cache referrer-policy: @@ -151,20 +146,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b90656664f5e78a9c70003f6061 + - 62c1f5dc66be5cd1e78862430017583f x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.482890' + - '0.969785' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -188,49 +183,36 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_6d4682467fe24164934e5c5f1da503ac/rerate + uri: https://api.easypost.com/v2/shipments/shp_27faf462ff594b42a8aa0750f52c4d05/rerate response: body: - string: '{"rates": [{"id": "rate_33f2caf3eb7244c0a363da3f41732b74", "object": - "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7a82cc8b21b14da9ab6abb35ba4904bb", - "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + string: '{"rates": [{"id": "rate_65e49e1c2d4a4ca8804b3d049a4db6ac", "object": + "Rate", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_21b10e4e62144680abd3e385e1e68223", + "object": "Rate", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", + "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_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a4f93bbdd6594b03a74b3c20c2828950", - "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", + 2, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b95aa40b3c4e44dd8ac25796bdeca323", + "object": "Rate", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3fd97d7f109f4b5286a9138f22f90718", - "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_0eacc63801f94b0da81fb910a6f6581d", "object": "Rate", "created_at": - "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}]}' + 3, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2708' + - '1628' content-type: - application/json; charset=utf-8 expires: @@ -252,20 +234,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b90656664f6e78a9c70003f610c + - 62c1f5dc66be5cd2e788624300175943 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.418697' + - '0.729300' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_retrieve.yaml b/tests/cassettes/test_shipment_retrieve.yaml index ba9ec25e..8e8125b7 100644 --- a/tests/cassettes/test_shipment_retrieve.yaml +++ b/tests/cassettes/test_shipment_retrieve.yaml @@ -31,10 +31,10 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:08:47Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:53:48Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -42,100 +42,95 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": null, "updated_at": - "2023-11-28T22:08:48Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_fd79cf15f742469c9dfb0c20424bff69", "object": - "CustomsInfo", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", - "contents_explanation": "", "contents_type": "merchandise", "customs_certify": - true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": - "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_038a60dbd57f43ee9f79b788fc0ca10e", - "object": "CustomsItem", "created_at": "2023-11-28T22:08:47Z", "updated_at": - "2023-11-28T22:08:47Z", "description": "Sweet shirts", "hs_tariff_number": - "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": - 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, - "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_b43d4ecd8e3a11eebb1a3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + null, "updated_at": "2024-08-15T19:53:49Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_09b45e8b65a1479eac2e2178cf7d6ded", + "object": "CustomsInfo", "created_at": "2024-08-15T19:53:48Z", "updated_at": + "2024-08-15T19:53:48Z", "contents_explanation": "", "contents_type": "merchandise", + "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI + 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, + "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": + [{"id": "cstitem_338f025195474651b71229bcb3ee25ef", "object": "CustomsItem", + "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", + "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": + "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": + "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": + null}]}, "from_address": {"id": "adr_16788f9b5b4011efb95eac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_39e70f7c0035461db7eddf486812ed38", - "object": "Parcel", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_93d9310e57c54d569166d4af5f71bf45", + "object": "Parcel", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0a913f3edd29495f86f6210aaa275a98", - "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c3688783ce824f60a8acecec9a7088a7", + "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", + "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_c6b01e69e66241499909f827d983cd53", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_93df52ee40da44aca07f128ba8f69712", - "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", + 2, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d9b6908936bf4d60b7eeca0e75ddc988", + "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_c6b01e69e66241499909f827d983cd53", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dfe4f8657ea94c1d858404ddb7b1dfa0", - "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b16247adf83849c6876e4f468a5ea4e8", "object": "Rate", "created_at": - "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_ab7cea862d084f92a42f5e31b6b4b5af", "object": "Rate", "created_at": - "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_b43ad0568e3a11ee867bac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_b43d4ecd8e3a11eebb1a3cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:08:47+00:00", "updated_at": - "2023-11-28T22:08:47+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b7b52e0e818749a587e3a48d8a208535", + "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_16764f2a5b4011ef9a0dac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": + "2024-08-15T19:53:48+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_b43ad0568e3a11ee867bac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_16788f9b5b4011efb95eac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_16764f2a5b4011ef9a0dac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_c6b01e69e66241499909f827d983cd53", + {}}, "forms": [], "fees": [], "id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7265' + - '6912' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_c6b01e69e66241499909f827d983cd53 + - /api/v2/shipments/shp_ffcb01bbaa904bfc999752cb924bb9cb pragma: - no-cache referrer-policy: @@ -151,20 +146,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b3656664efe78a9c6c003fea44 + - 62c1f5dc66be5ccce78862280017531c x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.563410' + - '0.811707' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -184,13 +179,13 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_c6b01e69e66241499909f827d983cd53 + uri: https://api.easypost.com/v2/shipments/shp_ffcb01bbaa904bfc999752cb924bb9cb response: body: - string: '{"created_at": "2023-11-28T22:08:47Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2024-08-15T19:53:48Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -198,94 +193,89 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": null, "updated_at": - "2023-11-28T22:08:48Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_fd79cf15f742469c9dfb0c20424bff69", "object": - "CustomsInfo", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", - "contents_explanation": "", "contents_type": "merchandise", "customs_certify": - true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": - "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_038a60dbd57f43ee9f79b788fc0ca10e", - "object": "CustomsItem", "created_at": "2023-11-28T22:08:47Z", "updated_at": - "2023-11-28T22:08:47Z", "description": "Sweet shirts", "hs_tariff_number": - "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": - 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, - "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_b43d4ecd8e3a11eebb1a3cecef1b359e", "object": "Address", "created_at": - "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid + Access License number"}], "mode": "test", "options": {"label_format": "PNG", + "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": + null, "updated_at": "2024-08-15T19:53:49Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_09b45e8b65a1479eac2e2178cf7d6ded", + "object": "CustomsInfo", "created_at": "2024-08-15T19:53:48Z", "updated_at": + "2024-08-15T19:53:48Z", "contents_explanation": "", "contents_type": "merchandise", + "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI + 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, + "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": + [{"id": "cstitem_338f025195474651b71229bcb3ee25ef", "object": "CustomsItem", + "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", + "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": + "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": + "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": + null}]}, "from_address": {"id": "adr_16788f9b5b4011efb95eac1f6bc53342", "object": + "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_39e70f7c0035461db7eddf486812ed38", - "object": "Parcel", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_93d9310e57c54d569166d4af5f71bf45", + "object": "Parcel", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0a913f3edd29495f86f6210aaa275a98", - "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c3688783ce824f60a8acecec9a7088a7", + "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", + "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_c6b01e69e66241499909f827d983cd53", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_93df52ee40da44aca07f128ba8f69712", - "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", + 2, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d9b6908936bf4d60b7eeca0e75ddc988", + "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "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_c6b01e69e66241499909f827d983cd53", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dfe4f8657ea94c1d858404ddb7b1dfa0", - "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b16247adf83849c6876e4f468a5ea4e8", "object": "Rate", "created_at": - "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_ab7cea862d084f92a42f5e31b6b4b5af", "object": "Rate", "created_at": - "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_b43ad0568e3a11ee867bac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_b43d4ecd8e3a11eebb1a3cecef1b359e", - "object": "Address", "created_at": "2023-11-28T22:08:47+00:00", "updated_at": - "2023-11-28T22:08:47+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + 3, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b7b52e0e818749a587e3a48d8a208535", + "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_16764f2a5b4011ef9a0dac1f6bc539aa", + "object": "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": + "2024-08-15T19:53:48+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_b43ad0568e3a11ee867bac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_16788f9b5b4011efb95eac1f6bc53342", "object": "Address", "created_at": + "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_16764f2a5b4011ef9a0dac1f6bc539aa", "object": + "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_c6b01e69e66241499909f827d983cd53", + {}}, "forms": [], "fees": [], "id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7265' + - '6912' content-type: - application/json; charset=utf-8 expires: @@ -305,20 +295,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ae35d0b3656664f0e78a9c6c003feb17 + - 62c1f5dc66be5ccde78862280017540b x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.091824' + - '0.085065' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_smart_rate.yaml b/tests/cassettes/test_shipment_smart_rate.yaml index d559c377..6a2913d3 100644 --- a/tests/cassettes/test_shipment_smart_rate.yaml +++ b/tests/cassettes/test_shipment_smart_rate.yaml @@ -26,100 +26,93 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-11-28T22:09:02Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-11-28T22:09:03Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_bd229b538e3a11ee8eafac1f6bc53342", "object": "Address", "created_at": - "2023-11-28T22:09:02+00:00", "updated_at": "2023-11-28T22:09:02+00:00", "name": + string: '{"created_at": "2024-08-15T19:54:03Z", "is_return": false, "messages": + [{"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", + "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": + "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": + "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", + "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", + "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": + "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid + Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-08-15T19:54:03Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_1f3a0fba5b4011efabbd3cecef1b359e", + "object": "Address", "created_at": "2024-08-15T19:54:03+00:00", "updated_at": + "2024-08-15T19:54:03+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "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_7d75afa8bde04e49ae8beab3bdf17342", "object": + "Parcel", "created_at": "2024-08-15T19:54:03Z", "updated_at": "2024-08-15T19:54:03Z", + "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_afeef35b7877487dbe5f490646182a94", + "object": "Rate", "created_at": "2024-08-15T19:54:03Z", "updated_at": "2024-08-15T19:54:03Z", + "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_ff06f36a6dc14993bf08e237b7598c87", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c3886b80cef6459ab77348600b17cd23", + "object": "Rate", "created_at": "2024-08-15T19:54:03Z", "updated_at": "2024-08-15T19:54:03Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f858cfb20d9c4229ad565382d27da973", + "object": "Rate", "created_at": "2024-08-15T19:54:03Z", "updated_at": "2024-08-15T19:54:03Z", + "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_ff06f36a6dc14993bf08e237b7598c87", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_1f3726f95b4011ef8dbeac1f6bc539ae", + "object": "Address", "created_at": "2024-08-15T19:54:03+00:00", "updated_at": + "2024-08-15T19:54:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_1f3a0fba5b4011efabbd3cecef1b359e", "object": "Address", "created_at": + "2024-08-15T19:54:03+00:00", "updated_at": "2024-08-15T19:54:03+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "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_a56768d042174630ad62f7424a6a0913", - "object": "Parcel", "created_at": "2023-11-28T22:09:02Z", "updated_at": "2023-11-28T22:09:02Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_900b21e7e0f447319ddd7090e487e302", - "object": "Rate", "created_at": "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3801f7c54f1a4093bae86a125e4a52b9", - "object": "Rate", "created_at": "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a708bfb41a5345ae928de36579c98d1b", - "object": "Rate", "created_at": "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b32c055b9f1044c0931fff28fdb96318", - "object": "Rate", "created_at": "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_4976356a018a46fb9894e9ab3364f4ce", "object": "Rate", "created_at": - "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_bd1f9d568e3a11ee8bf3ac1f6bc539aa", "object": - "Address", "created_at": "2023-11-28T22:09:02+00:00", "updated_at": "2023-11-28T22:09:02+00:00", + {}}, "buyer_address": {"id": "adr_1f3726f95b4011ef8dbeac1f6bc539ae", "object": + "Address", "created_at": "2024-08-15T19:54:03+00:00", "updated_at": "2024-08-15T19:54:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_bd229b538e3a11ee8eafac1f6bc53342", - "object": "Address", "created_at": "2023-11-28T22:09:02+00:00", "updated_at": - "2023-11-28T22:09:02+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "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_bd1f9d568e3a11ee8bf3ac1f6bc539aa", "object": "Address", "created_at": - "2023-11-28T22:09:02+00:00", "updated_at": "2023-11-28T22:09:02+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_6d8603c7ee994eed800e47ff5a9680e6", + {}}, "forms": [], "fees": [], "id": "shp_ff06f36a6dc14993bf08e237b7598c87", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6394' + - '5804' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_6d8603c7ee994eed800e47ff5a9680e6 + - /api/v2/shipments/shp_ff06f36a6dc14993bf08e237b7598c87 pragma: - no-cache referrer-policy: @@ -135,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b90656664fee78a9f82003f680b + - 62c1f5d966be5cdbe788624700176177 x-frame-options: - SAMEORIGIN x-node: - - bigweb31nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.762457' + - '0.797086' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -168,57 +161,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_6d8603c7ee994eed800e47ff5a9680e6/smartrate + uri: https://api.easypost.com/v2/shipments/shp_ff06f36a6dc14993bf08e237b7598c87/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:09:03Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_900b21e7e0f447319ddd7090e487e302", "list_currency": "USD", - "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": - "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 5}, "updated_at": "2023-11-28T22:09:03Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:09:03Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 2, "est_delivery_days": 2, "id": "rate_3801f7c54f1a4093bae86a125e4a52b9", - "list_currency": "USD", "list_rate": 8.24, "mode": "test", "object": "Rate", - "rate": 6.95, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", - "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 6}, "updated_at": - "2023-11-28T22:09:03Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:09:03Z", "currency": "USD", "delivery_date": + "created_at": "2024-08-15T19:54:03Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_a708bfb41a5345ae928de36579c98d1b", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:09:03Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:09:03Z", + 3, "id": "rate_afeef35b7877487dbe5f490646182a94", "list_currency": "USD", + "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": + 3}, "updated_at": "2024-08-15T19:54:03Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:03Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_b32c055b9f1044c0931fff28fdb96318", - "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", - "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "time_in_transit": - {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": - 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": - "2023-11-28T22:09:03Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-11-28T22:09:03Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_4976356a018a46fb9894e9ab3364f4ce", "list_currency": "USD", - "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "updated_at": "2023-11-28T22:09:03Z"}]}' + "delivery_days": 1, "est_delivery_days": 1, "id": "rate_c3886b80cef6459ab77348600b17cd23", + "list_currency": "USD", "list_rate": 33.1, "mode": "test", "object": "Rate", + "rate": 33.1, "retail_currency": "USD", "retail_rate": 37.9, "service": "Express", + "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", "time_in_transit": + {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 7}, "updated_at": + "2024-08-15T19:54:03Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2024-08-15T19:54:03Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": + 2, "id": "rate_f858cfb20d9c4229ad565382d27da973", "list_currency": "USD", + "list_rate": 8.25, "mode": "test", "object": "Rate", "rate": 6.9, "retail_currency": + "USD", "retail_rate": 9.8, "service": "Priority", "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", + "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": + 3}, "updated_at": "2024-08-15T19:54:03Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '3274' + - '1965' content-type: - application/json; charset=utf-8 expires: @@ -238,20 +214,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 88ad7b9065666500e78a9f82003f6964 + - 62c1f5d966be5cdbe78862470017626a x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.088847' + - '0.118570' x-version-label: - - easypost-202311250013-a0f06fbc2c-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_smartrate_estimate_delivery_date.yaml b/tests/cassettes/test_smartrate_estimate_delivery_date.yaml index 879710c4..93b2bd2c 100644 --- a/tests/cassettes/test_smartrate_estimate_delivery_date.yaml +++ b/tests/cassettes/test_smartrate_estimate_delivery_date.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"from_zip": "94107", "to_zip": "90277", "planned_ship_date": "2024-07-11", + body: '{"from_zip": "94107", "to_zip": "90277", "planned_ship_date": "2024-08-15", "carriers": ["USPS"]}' headers: Accept: @@ -22,24 +22,24 @@ interactions: response: body: string: '{"carriers_without_tint_estimates": null, "from_zip": "94107", "planned_ship_date": - "2024-07-11", "results": [{"carrier": "USPS", "easypost_time_in_transit_data": + "2024-08-15", "results": [{"carrier": "USPS", "easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": 4, "percentile_90": 4, "percentile_95": 4, "percentile_97": 5, "percentile_99": - 6}, "easypost_estimated_delivery_date": "2024-07-12"}, "service": "express"}, + 6}, "easypost_estimated_delivery_date": "2024-08-16"}, "service": "express"}, {"carrier": "USPS", "easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 5, "percentile_99": 8}, "easypost_estimated_delivery_date": - "2024-07-15"}, "service": "groundadvantage"}, {"carrier": "USPS", "easypost_time_in_transit_data": + 5, "percentile_97": 6, "percentile_99": 8}, "easypost_estimated_delivery_date": + "2024-08-19"}, "service": "groundadvantage"}, {"carrier": "USPS", "easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 7}, "easypost_estimated_delivery_date": "2024-07-15"}, "service": "librarymail"}, + 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 8}, "easypost_estimated_delivery_date": "2024-08-19"}, "service": "librarymail"}, {"carrier": "USPS", "easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 5, "percentile_99": 8}, "easypost_estimated_delivery_date": - "2024-07-15"}, "service": "mediamail"}, {"carrier": "USPS", "easypost_time_in_transit_data": + 5, "percentile_97": 6, "percentile_99": 8}, "easypost_estimated_delivery_date": + "2024-08-19"}, "service": "mediamail"}, {"carrier": "USPS", "easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 7}, "easypost_estimated_delivery_date": "2024-07-15"}, "service": "priority"}], + 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 8}, "easypost_estimated_delivery_date": "2024-08-19"}, "service": "priority"}], "saturday_delivery": null, "to_zip": "90277"}' headers: cache-control: @@ -60,25 +60,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 67540321668dac8be2ba0735002c40c8 + - 62c1f5d966be5ceae788626a00177147 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.050522' + - '0.064985' x-version-label: - - easypost-202407092027-324ee50b5a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_smartrate_recommend_ship_date.yaml b/tests/cassettes/test_smartrate_recommend_ship_date.yaml index f81e58c4..2198200d 100644 --- a/tests/cassettes/test_smartrate_recommend_ship_date.yaml +++ b/tests/cassettes/test_smartrate_recommend_ship_date.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"from_zip": "94107", "to_zip": "90277", "desired_delivery_date": "2024-07-16", + body: '{"from_zip": "94107", "to_zip": "90277", "desired_delivery_date": "2024-08-18", "carriers": ["USPS"]}' headers: Accept: @@ -22,33 +22,33 @@ interactions: response: body: string: '{"carriers_without_tint_estimates": null, "desired_delivery_date": - "2024-07-16", "from_zip": "94107", "results": [{"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 7}, "delivery_date_confidence": 0.47, "estimated_transit_days": 1, "ship_on_date": - "2024-07-15"}, "service": "express"}, {"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 2, "percentile_75": 3, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 9}, "delivery_date_confidence": 0.21, "estimated_transit_days": 3, "ship_on_date": - "2024-07-13"}, "service": "groundadvantage"}, {"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 2, "percentile_75": 3, "percentile_85": + "2024-08-18", "from_zip": "94107", "results": [{"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 1, "percentile_75": 3, "percentile_85": + 3, "percentile_90": 4, "percentile_95": 4, "percentile_97": 5, "percentile_99": + 7}, "delivery_date_confidence": 0.01, "estimated_transit_days": 2, "ship_on_date": + "2024-08-16"}, "service": "express"}, {"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 9}, "delivery_date_confidence": 0.25, "estimated_transit_days": 3, "ship_on_date": - "2024-07-13"}, "service": "librarymail"}, {"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 2, "percentile_75": 3, "percentile_85": - 3, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 7}, "delivery_date_confidence": 0.24, "estimated_transit_days": 3, "ship_on_date": - "2024-07-13"}, "service": "mediamail"}, {"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 2, "percentile_75": 3, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 5, "percentile_99": - 7}, "delivery_date_confidence": 0.19, "estimated_transit_days": 3, "ship_on_date": - "2024-07-13"}, "service": "priority"}], "saturday_delivery": null, "to_zip": + 8}, "delivery_date_confidence": 0.0, "estimated_transit_days": 3, "ship_on_date": + "2024-08-15"}, "service": "groundadvantage"}, {"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 3, "percentile_75": 3, "percentile_85": + 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 8}, "delivery_date_confidence": 0.0, "estimated_transit_days": 2, "ship_on_date": + "2024-08-16"}, "service": "librarymail"}, {"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": + 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 8}, "delivery_date_confidence": 0.0, "estimated_transit_days": 3, "ship_on_date": + "2024-08-15"}, "service": "mediamail"}, {"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": + 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 8}, "delivery_date_confidence": 0.0, "estimated_transit_days": 3, "ship_on_date": + "2024-08-15"}, "service": "priority"}], "saturday_delivery": null, "to_zip": "90277"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1695' + - '1691' content-type: - application/json; charset=utf-8 expires: @@ -68,20 +68,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 67540320668dabdee2ba0376002b9534 + - 62c1f5d866be5ceae788626b0017718f x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.073001' + - '0.050614' x-version-label: - - easypost-202407092027-324ee50b5a-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_all.yaml b/tests/cassettes/test_tracker_all.yaml index c91db753..8c02516e 100644 --- a/tests/cassettes/test_tracker_all.yaml +++ b/tests/cassettes/test_tracker_all.yaml @@ -16,230 +16,119 @@ interactions: uri: https://api.easypost.com/v2/trackers?page_size=5 response: body: - string: '{"trackers": [{"id": "trk_8de54ec569444a0eabd75bd9dcecc96b", "object": - "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-16T16:44:03Z", "updated_at": - "2023-05-16T16:44:03Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-16T16:44:03Z", "shipment_id": null, "carrier": "USPS", "tracking_details": - [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", - "description": null, "status": "pre_transit", "status_detail": "status_update", - "datetime": "2023-04-16T16:44:03Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": null, "state": - null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": null, "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-04-17T05:21:03Z", "source": "USPS", "carrier_code": - null, "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", - "state": "TX", "country": null, "zip": "77063"}}], "fees": [{"object": "Fee", - "type": "TrackerFee", "amount": "0.02000", "charged": false, "refunded": false}], - "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package - Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": - null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": + string: '{"trackers": [{"id": "trk_9df7bdd832bf409b8d061ac5ac4db98f", "object": + "Tracker", "mode": "test", "tracking_code": "9400100105807075743081", "status": + "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:15Z", + "updated_at": "2024-08-15T19:54:15Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:15Z", "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:54:15Z", "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-07-16T08:31:15Z", "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/djE6dHJrXzhkZTU0ZWM1Njk0NDRhMGVhYmQ3NWJkOWRjZWNjOTZi"}, - {"id": "trk_1c719471026e4f858de8762ac10884f4", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210342375", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:34:01Z", - "updated_at": "2023-05-16T16:37:01Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:37:01Z", "shipment_id": "shp_bed157bf505f4c4a82302cc9e09619e4", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzlkZjdiZGQ4MzJiZjQwOWI4ZDA2MWFjNWFjNGRiOThm"}, + {"id": "trk_192cc0249a284e6889bee8390cf47341", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075743067", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:54:13Z", "updated_at": + "2024-08-15T19:54:13Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:13Z", "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:37:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:54:13Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:14:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:19:01Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:55:01Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:46:01Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:26:01Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:36:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:28:01Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:31: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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:28:01Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzFjNzE5NDcxMDI2ZTRmODU4ZGU4NzYyYWMxMDg4NGY0"}, - {"id": "trk_e1f75c88864041ef92d1ba0fd4c9a7ed", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210342023", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:32:38Z", - "updated_at": "2023-05-16T16:35:38Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:35:38Z", "shipment_id": "shp_73a181c595d24125a958ea82288c2248", + {"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/djE6dHJrXzE5MmNjMDI0OWEyODRlNjg4OWJlZTgzOTBjZjQ3MzQx"}, + {"id": "trk_b232ceb8d3e344e18c039a4355e3903b", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075743012", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:54:02Z", "updated_at": + "2024-08-15T19:54:02Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:02Z", "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:35:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:54:02Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:12:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:17:38Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:53:38Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:44:38Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:24:38Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:34:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:26:38Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:31:02Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:26:38Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2UxZjc1Yzg4ODY0MDQxZWY5MmQxYmEwZmQ0YzlhN2Vk"}, - {"id": "trk_4f2f427fc4554663b6a6121710218198", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210341828", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:31:56Z", - "updated_at": "2023-05-16T16:34:57Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:34:57Z", "shipment_id": "shp_9fd8372a9e274d25bb150a4c480733dc", + {"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/djE6dHJrX2IyMzJjZWI4ZDNlMzQ0ZTE4YzAzOWE0MzU1ZTM5MDNi"}, + {"id": "trk_cfaf3d94fbbb45c1982d8816869afdb5", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075743005", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:54:01Z", "updated_at": + "2024-08-15T19:54:01Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:01Z", "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:34:57Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:54:01Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:11:57Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:16:57Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:52:57Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:43:57Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:23:57Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:33:57Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:25:57Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:31:01Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:25:57Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzRmMmY0MjdmYzQ1NTQ2NjNiNmE2MTIxNzEwMjE4MTk4"}, - {"id": "trk_33b91297097d4ad28fe0207dae34fca5", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210341804", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:31:54Z", - "updated_at": "2023-05-16T16:34:54Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:34:54Z", "shipment_id": "shp_8d961782f9174b70a46c6fe4b179e4b1", + {"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/djE6dHJrX2NmYWYzZDk0ZmJiYjQ1YzE5ODJkODgxNjg2OWFmZGI1"}, + {"id": "trk_4b0cf8b1afd640158ca7db0b6a167e7a", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075742978", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:53:57Z", "updated_at": + "2024-08-15T19:53:58Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:58Z", "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:34:54Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:58Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:11:54Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:16:54Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:52:54Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:43:54Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:23:54Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:33:54Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:25:54Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:30:58Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:25:54Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzMzYjkxMjk3MDk3ZDRhZDI4ZmUwMjA3ZGFlMzRmY2E1"}], + {"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/djE6dHJrXzRiMGNmOGIxYWZkNjQwMTU4Y2E3ZGIwYjZhMTY3ZTdh"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '16532' + - '8220' content-type: - application/json; charset=utf-8 - etag: - - W/"e91403a5e38f7fccf2f1710f832ebb64" expires: - '0' pragma: @@ -257,20 +146,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e076463b2d3e787383d002bd709 + - 62c1f5dd66be5cebe788657c00177263 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.156230' + - '0.170297' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_create.yaml b/tests/cassettes/test_tracker_create.yaml index c502919a..33fe8738 100644 --- a/tests/cassettes/test_tracker_create.yaml +++ b/tests/cassettes/test_tracker_create.yaml @@ -20,19 +20,19 @@ interactions: uri: https://api.easypost.com/v2/trackers response: body: - string: '{"id": "trk_8de54ec569444a0eabd75bd9dcecc96b", "object": "Tracker", + string: '{"id": "trk_950faa2a72cc48d5bd099ca52c21dc22", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-16T16:44:03Z", "updated_at": - "2023-05-16T16:44:03Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-16T16:44:02Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "status_detail": "status_update", "created_at": "2024-06-03T17:50:53Z", "updated_at": + "2024-06-03T17:50:53Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-06-03T17:50:53Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", - "description": null, "status": "pre_transit", "status_detail": "status_update", - "datetime": "2023-04-16T16:44:02Z", "source": "USPS", "carrier_code": null, + "description": "", "status": "pre_transit", "status_detail": "status_update", + "datetime": "2024-05-03T17:50:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": null, "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-04-17T05:21:02Z", "source": "USPS", "carrier_code": - null, "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-05-04T06:27:53Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": @@ -40,22 +40,18 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzhkZTU0ZWM1Njk0NDRhMGVhYmQ3NWJkOWRjZWNjOTZi", - "fees": [{"object": "Fee", "type": "TrackerFee", "amount": "0.02000", "charged": - false, "refunded": false}]}' + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzk1MGZhYTJhNzJjYzQ4ZDViZDA5OWNhNTJjMjFkYzIy"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1724' + - '1618' content-type: - application/json; charset=utf-8 - etag: - - W/"0bb4a4435918bb7a126c1ebd891be43d" expires: - '0' location: - - /api/v2/trackers/trk_8de54ec569444a0eabd75bd9dcecc96b + - /api/v2/trackers/trk_950faa2a72cc48d5bd099ca52c21dc22 pragma: - no-cache referrer-policy: @@ -71,23 +67,23 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e086463b2d2e787383b002bd6b7 + - 62c1f5d766be5cebe788626c001771ba x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.131016' + - '0.062082' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: - code: 201 - message: Created + code: 200 + message: OK version: 1 diff --git a/tests/cassettes/test_tracker_create_list.yaml b/tests/cassettes/test_tracker_create_list.yaml index 8edfd0a8..9229f552 100644 --- a/tests/cassettes/test_tracker_create_list.yaml +++ b/tests/cassettes/test_tracker_create_list.yaml @@ -29,8 +29,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -48,20 +46,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e046463b2d4e787383f002bd784 + - 62c1f5dd66be5cede788657e0017738f x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.034050' + - '0.049818' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_get_next_page.yaml b/tests/cassettes/test_tracker_get_next_page.yaml index 4d3d68a5..dd6c42d4 100644 --- a/tests/cassettes/test_tracker_get_next_page.yaml +++ b/tests/cassettes/test_tracker_get_next_page.yaml @@ -16,230 +16,119 @@ interactions: uri: https://api.easypost.com/v2/trackers?page_size=5 response: body: - string: '{"trackers": [{"id": "trk_8de54ec569444a0eabd75bd9dcecc96b", "object": - "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-16T16:44:03Z", "updated_at": - "2023-05-16T16:44:03Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-16T16:44:03Z", "shipment_id": null, "carrier": "USPS", "tracking_details": - [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", - "description": null, "status": "pre_transit", "status_detail": "status_update", - "datetime": "2023-04-16T16:44:03Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": null, "state": - null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": null, "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-04-17T05:21:03Z", "source": "USPS", "carrier_code": - null, "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", - "state": "TX", "country": null, "zip": "77063"}}], "fees": [{"object": "Fee", - "type": "TrackerFee", "amount": "0.02000", "charged": false, "refunded": false}], - "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package - Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": - null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": + string: '{"trackers": [{"id": "trk_9df7bdd832bf409b8d061ac5ac4db98f", "object": + "Tracker", "mode": "test", "tracking_code": "9400100105807075743081", "status": + "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:15Z", + "updated_at": "2024-08-15T19:54:15Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:15Z", "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:54:15Z", "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-07-16T08:31:15Z", "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/djE6dHJrXzhkZTU0ZWM1Njk0NDRhMGVhYmQ3NWJkOWRjZWNjOTZi"}, - {"id": "trk_1c719471026e4f858de8762ac10884f4", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210342375", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:34:01Z", - "updated_at": "2023-05-16T16:37:01Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:37:01Z", "shipment_id": "shp_bed157bf505f4c4a82302cc9e09619e4", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzlkZjdiZGQ4MzJiZjQwOWI4ZDA2MWFjNWFjNGRiOThm"}, + {"id": "trk_192cc0249a284e6889bee8390cf47341", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075743067", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:54:13Z", "updated_at": + "2024-08-15T19:54:13Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:13Z", "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:37:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:54:13Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:14:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:19:01Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:55:01Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:46:01Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:26:01Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:36:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:28:01Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:31: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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:28:01Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzFjNzE5NDcxMDI2ZTRmODU4ZGU4NzYyYWMxMDg4NGY0"}, - {"id": "trk_e1f75c88864041ef92d1ba0fd4c9a7ed", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210342023", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:32:38Z", - "updated_at": "2023-05-16T16:35:38Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:35:38Z", "shipment_id": "shp_73a181c595d24125a958ea82288c2248", + {"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/djE6dHJrXzE5MmNjMDI0OWEyODRlNjg4OWJlZTgzOTBjZjQ3MzQx"}, + {"id": "trk_b232ceb8d3e344e18c039a4355e3903b", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075743012", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:54:02Z", "updated_at": + "2024-08-15T19:54:02Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:02Z", "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:35:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:54:02Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:12:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:17:38Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:53:38Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:44:38Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:24:38Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:34:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:26:38Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:31:02Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:26:38Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2UxZjc1Yzg4ODY0MDQxZWY5MmQxYmEwZmQ0YzlhN2Vk"}, - {"id": "trk_4f2f427fc4554663b6a6121710218198", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210341828", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:31:56Z", - "updated_at": "2023-05-16T16:34:57Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:34:57Z", "shipment_id": "shp_9fd8372a9e274d25bb150a4c480733dc", + {"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/djE6dHJrX2IyMzJjZWI4ZDNlMzQ0ZTE4YzAzOWE0MzU1ZTM5MDNi"}, + {"id": "trk_cfaf3d94fbbb45c1982d8816869afdb5", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075743005", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:54:01Z", "updated_at": + "2024-08-15T19:54:01Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:54:01Z", "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:34:57Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:54:01Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:11:57Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:16:57Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:52:57Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:43:57Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:23:57Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:33:57Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:25:57Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:31:01Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:25:57Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzRmMmY0MjdmYzQ1NTQ2NjNiNmE2MTIxNzEwMjE4MTk4"}, - {"id": "trk_33b91297097d4ad28fe0207dae34fca5", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210341804", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:31:54Z", - "updated_at": "2023-05-16T16:34:54Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:34:54Z", "shipment_id": "shp_8d961782f9174b70a46c6fe4b179e4b1", + {"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/djE6dHJrX2NmYWYzZDk0ZmJiYjQ1YzE5ODJkODgxNjg2OWFmZGI1"}, + {"id": "trk_4b0cf8b1afd640158ca7db0b6a167e7a", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075742978", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:53:57Z", "updated_at": + "2024-08-15T19:53:58Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:58Z", "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:34:54Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:58Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:11:54Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:16:54Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:52:54Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:43:54Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:23:54Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:33:54Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:25:54Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:30:58Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:25:54Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzMzYjkxMjk3MDk3ZDRhZDI4ZmUwMjA3ZGFlMzRmY2E1"}], + {"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/djE6dHJrXzRiMGNmOGIxYWZkNjQwMTU4Y2E3ZGIwYjZhMTY3ZTdh"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '16532' + - '8220' content-type: - application/json; charset=utf-8 - etag: - - W/"e91403a5e38f7fccf2f1710f832ebb64" expires: - '0' pragma: @@ -257,20 +146,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e076463b2d4e787383e002bd738 + - 62c1f5da66be5cece788657d001772ab x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.220044' + - '0.495732' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -290,259 +179,122 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/trackers?before_id=trk_33b91297097d4ad28fe0207dae34fca5&page_size=5 + uri: https://api.easypost.com/v2/trackers?before_id=trk_4b0cf8b1afd640158ca7db0b6a167e7a&page_size=5 response: body: - string: '{"trackers": [{"id": "trk_04ee4a941e8e4a5588055b6c888a1e0a", "object": - "Tracker", "mode": "test", "tracking_code": "9400100104262210341798", "status": - "delivered", "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:31:52Z", - "updated_at": "2023-05-16T16:34:52Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:34:52Z", "shipment_id": "shp_1f8bcc1d9de543d6b459de624fcccd3d", + string: '{"trackers": [{"id": "trk_19e7f422ccd249b5a97ec755230a615d", "object": + "Tracker", "mode": "test", "tracking_code": "9400100105807075742961", "status": + "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:53Z", + "updated_at": "2024-08-15T19:53:53Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:53Z", "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:34:52Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:53Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:11:52Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:16:52Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:52:52Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:43:52Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:23:52Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:33:52Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:25:52Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:30:53Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:25:52Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzA0ZWU0YTk0MWU4ZTRhNTU4ODA1NWI2Yzg4OGExZTBh"}, - {"id": "trk_ea5f9707a5a942c785a32081bd79e1c4", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210341637", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:31:38Z", - "updated_at": "2023-05-16T16:34:39Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:34:39Z", "shipment_id": "shp_6202abb22874490ab3631a413493bdeb", + {"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/djE6dHJrXzE5ZTdmNDIyY2NkMjQ5YjVhOTdlYzc1NTIzMGE2MTVk"}, + {"id": "trk_4919a90d02f04349a34b4d71f8f8f411", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075742923", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:53:46Z", "updated_at": + "2024-08-15T19:53:46Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:46Z", "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:34:39Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:46Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:11:39Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:16:39Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:52:39Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:43:39Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:23:39Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:33:39Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:25:39Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:30:46Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:25:39Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2VhNWY5NzA3YTVhOTQyYzc4NWEzMjA4MWJkNzllMWM0"}, - {"id": "trk_b6607dd3b1ee487e81a804d42383628c", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210341620", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:31:37Z", - "updated_at": "2023-05-16T16:34:37Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:34:37Z", "shipment_id": "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", + {"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/djE6dHJrXzQ5MTlhOTBkMDJmMDQzNDlhMzRiNGQ3MWY4ZjhmNDEx"}, + {"id": "trk_48c523996d8f45c6a0b267166aea639a", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075742909", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:53:44Z", "updated_at": + "2024-08-15T19:53:44Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:44Z", "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:34:37Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:44Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:11:37Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:16:37Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:52:37Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:43:37Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:23:37Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:33:37Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:25:37Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:30:44Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:25:37Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2I2NjA3ZGQzYjFlZTQ4N2U4MWE4MDRkNDIzODM2Mjhj"}, - {"id": "trk_93e5cabacc4441caaf5b9c2df096e1c2", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210341583", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:31:35Z", - "updated_at": "2023-05-16T16:34:36Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:34:36Z", "shipment_id": "shp_1201cff4ea724643b6ca18a80024fd8b", + {"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/djE6dHJrXzQ4YzUyMzk5NmQ4ZjQ1YzZhMGIyNjcxNjZhZWE2Mzlh"}, + {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075742886", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:53:39Z", "updated_at": + "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:39Z", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:34:36Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:39Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:11:36Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:16:36Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:52:36Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:43:36Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:23:36Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:33:36Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:25:36Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:30:39Z", "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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:25:36Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzkzZTVjYWJhY2M0NDQxY2FhZjViOWMyZGYwOTZlMWMy"}, - {"id": "trk_ee0265f7091641c99538b787cad56e1e", "object": "Tracker", "mode": - "test", "tracking_code": "9400100104262210341552", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:31:32Z", - "updated_at": "2023-05-16T16:34:33Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:34:33Z", "shipment_id": "shp_1c7388a907eb47208f9aafbff063d773", + {"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/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, + {"id": "trk_24fa66d76fe344e4b291a4df3ca5e2b7", "object": "Tracker", "mode": + "test", "tracking_code": "9400100105807075742763", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2024-08-15T19:53:29Z", "updated_at": + "2024-08-15T19:53:29Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-08-15T19:53:29Z", "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:34:33Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-15T19:53:29Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:11:33Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:16:33Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:52:33Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:43:33Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:23:33Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:33:33Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:25:33Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2024-07-16T08:30: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": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2023-04-19T06:25:33Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2VlMDI2NWY3MDkxNjQxYzk5NTM4Yjc4N2NhZDU2ZTFl"}], + {"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/djE6dHJrXzI0ZmE2NmQ3NmZlMzQ0ZTRiMjkxYTRkZjNjYTVlMmI3"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '18545' + - '8220' content-type: - application/json; charset=utf-8 - etag: - - W/"41d05cf444b93214ec9e6d01baa076df" expires: - '0' pragma: @@ -560,20 +312,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e076463b2d4e787383e002bd75f + - 62c1f5da66be5cece788657d00177328 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.146037' + - '0.190018' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_retrieve.yaml b/tests/cassettes/test_tracker_retrieve.yaml index 2a748524..fdc04c7c 100644 --- a/tests/cassettes/test_tracker_retrieve.yaml +++ b/tests/cassettes/test_tracker_retrieve.yaml @@ -20,19 +20,19 @@ interactions: uri: https://api.easypost.com/v2/trackers response: body: - string: '{"id": "trk_8de54ec569444a0eabd75bd9dcecc96b", "object": "Tracker", + string: '{"id": "trk_950faa2a72cc48d5bd099ca52c21dc22", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-16T16:44:03Z", "updated_at": - "2023-05-16T16:44:03Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-16T16:44:03Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "status_detail": "status_update", "created_at": "2024-06-03T17:50:53Z", "updated_at": + "2024-06-03T17:50:53Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-06-03T17:50:53Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", - "description": null, "status": "pre_transit", "status_detail": "status_update", - "datetime": "2023-04-16T16:44:03Z", "source": "USPS", "carrier_code": null, + "description": "", "status": "pre_transit", "status_detail": "status_update", + "datetime": "2024-05-03T17:50:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": null, "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-04-17T05:21:03Z", "source": "USPS", "carrier_code": - null, "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-05-04T06:27:53Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": @@ -40,20 +40,18 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzhkZTU0ZWM1Njk0NDRhMGVhYmQ3NWJkOWRjZWNjOTZi"}' + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzk1MGZhYTJhNzJjYzQ4ZDViZDA5OWNhNTJjMjFkYzIy"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1626' + - '1618' content-type: - application/json; charset=utf-8 - etag: - - W/"0f24163af2b3c881a3e3e628f58fdd51" expires: - '0' location: - - /api/v2/trackers/trk_8de54ec569444a0eabd75bd9dcecc96b + - /api/v2/trackers/trk_950faa2a72cc48d5bd099ca52c21dc22 pragma: - no-cache referrer-policy: @@ -69,20 +67,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e056463b2d3e787383c002bd6e6 + - 62c1f5db66be5cebe788626d001771fd x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.056516' + - '0.069405' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -102,40 +100,37 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/trackers/trk_8de54ec569444a0eabd75bd9dcecc96b + uri: https://api.easypost.com/v2/trackers/trk_950faa2a72cc48d5bd099ca52c21dc22 response: body: - string: '{"id": "trk_8de54ec569444a0eabd75bd9dcecc96b", "object": "Tracker", + string: '{"id": "trk_950faa2a72cc48d5bd099ca52c21dc22", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-16T16:44:03Z", "updated_at": - "2023-05-16T16:44:03Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-16T16:44:03Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "status_detail": "status_update", "created_at": "2024-06-03T17:50:53Z", "updated_at": + "2024-06-03T17:50:53Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-06-03T17:50:53Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", - "description": null, "status": "pre_transit", "status_detail": "status_update", - "datetime": "2023-04-16T16:44:03Z", "source": "USPS", "carrier_code": null, + "description": "", "status": "pre_transit", "status_detail": "status_update", + "datetime": "2024-05-03T17:50:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": - "Shipping Label Created", "description": null, "status": "pre_transit", "status_detail": - "status_update", "datetime": "2023-04-17T05:21:03Z", "source": "USPS", "carrier_code": - null, "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", - "state": "TX", "country": null, "zip": "77063"}}], "fees": [{"object": "Fee", - "type": "TrackerFee", "amount": "0.02000", "charged": false, "refunded": false}], - "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package - Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": - null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": - {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": - null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzhkZTU0ZWM1Njk0NDRhMGVhYmQ3NWJkOWRjZWNjOTZi"}' + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2024-05-04T06:27:53Z", "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/djE6dHJrXzk1MGZhYTJhNzJjYzQ4ZDViZDA5OWNhNTJjMjFkYzIy"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1689' + - '1593' content-type: - application/json; charset=utf-8 - etag: - - W/"f1dbd24a8dbbf4bd1054a2894a0973fe" expires: - '0' pragma: @@ -153,20 +148,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e056463b2d3e787383c002bd6f1 + - 62c1f5db66be5cebe788626d0017721f x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.045946' + - '0.057013' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_unsubscribe_hooks.yaml b/tests/cassettes/test_unsubscribe_hooks.yaml index b7cb6d0b..4e8bfdd2 100644 --- a/tests/cassettes/test_unsubscribe_hooks.yaml +++ b/tests/cassettes/test_unsubscribe_hooks.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_2535d1e2665641948770e7aa90f70bf3", "object": "Parcel", - "created_at": "2023-06-30T17:01:45Z", "updated_at": "2023-06-30T17:01:45Z", + string: '{"id": "prcl_01d7ce84347b44cf9ed4356cdbf38a5f", "object": "Parcel", + "created_at": "2024-08-15T19:52:57Z", "updated_at": "2024-08-15T19:52:57Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -31,12 +31,10 @@ interactions: - '229' content-type: - application/json; charset=utf-8 - etag: - - W/"9cb055900bf75d13a2ec90e371e91ee8" expires: - '0' location: - - /api/v2/parcels/prcl_2535d1e2665641948770e7aa90f70bf3 + - /api/v2/parcels/prcl_01d7ce84347b44cf9ed4356cdbf38a5f pragma: - no-cache referrer-policy: @@ -47,25 +45,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 9ccf1878649f0a79e786c05b0018405c + - 62c1f5d866be5c99e7886163001721db x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq d3d339cca1 - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.030761' + - '0.032566' x-version-label: - - easypost-202306301627-c689abe57f-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_all_children.yaml b/tests/cassettes/test_user_all_children.yaml index 34c46995..f172e61a 100644 --- a/tests/cassettes/test_user_all_children.yaml +++ b/tests/cassettes/test_user_all_children.yaml @@ -16,20 +16,26 @@ interactions: uri: https://api.easypost.com/v2/users/children?page_size=5 response: body: - string: '{"children": [{"id": "user_484dd58db70a4f31b4bb862998cf0e04", "object": - "User", "parent_id": "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test - User", "phone_number": "", "verified": true, "created_at": "2023-05-16T22:01:20Z"}, - {"id": "user_14e894c0d541459395f4456e7cf4f175", "object": "User", "parent_id": - "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2023-09-27T22:05:26Z"}, {"id": - "user_f04df3dad13848339a7975d295d6629f", "object": "User", "parent_id": "user_0f6b83e3530b401cb1e8aeaa6a250d4d", - "name": "Test User", "phone_number": "", "verified": true, "created_at": - "2023-11-30T19:23:22Z"}], "has_more": false}' + string: '{"children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "", "verified": true, "created_at": "2023-12-11T17:13:38Z"}, + {"id": "user_437e724f37de412db6df8821968d8d3c", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User2", "phone_number": + "", "verified": true, "created_at": "2023-12-11T17:13:43Z"}, {"id": + "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", + "name": "Child Account Name22", "phone_number": "", "verified": + true, "created_at": "2024-01-04T19:56:21Z"}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "", "verified": true, "created_at": + "2024-01-19T21:42:21Z"}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "", "verified": true, "created_at": "2024-01-19T21:44:18Z"}], + "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '673' + - '1114' content-type: - application/json; charset=utf-8 expires: @@ -44,25 +50,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 3c78c4046596fc50e799f2840005aa4e + - 62c1f5da66be5cf2e788659e001777e7 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 2c48984abf - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.034301' + - '0.189497' x-version-label: - - easypost-202401041812-437974c716-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_children_get_next_page.yaml b/tests/cassettes/test_user_children_get_next_page.yaml index 82271fdd..d667b875 100644 --- a/tests/cassettes/test_user_children_get_next_page.yaml +++ b/tests/cassettes/test_user_children_get_next_page.yaml @@ -16,26 +16,26 @@ interactions: uri: https://api.easypost.com/v2/users/children?page_size=5 response: body: - string: '{"children": [{"id": "user_484dd58db70a4f31b4bb862998cf0e04", "object": - "User", "parent_id": "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test - User", "phone_number": "", "verified": true, "created_at": "2023-05-16T22:01:20Z"}, - {"id": "user_14e894c0d541459395f4456e7cf4f175", "object": "User", "parent_id": - "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2023-09-27T22:05:26Z"}, {"id": - "user_f04df3dad13848339a7975d295d6629f", "object": "User", "parent_id": "user_0f6b83e3530b401cb1e8aeaa6a250d4d", - "name": "Test User", "phone_number": "", "verified": true, "created_at": - "2023-11-30T19:23:22Z"}, {"id": "user_44d216445b2f4595a123a18084000d94", "object": - "User", "parent_id": "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test - User", "phone_number": "", "verified": true, "created_at": "2024-07-26T18:36:54Z"}, - {"id": "user_f3b7021a2d924bedb080d7caa00d753e", "object": "User", "parent_id": - "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2024-07-26T18:41:48Z"}], "has_more": - true}' + string: '{"children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "", "verified": true, "created_at": "2023-12-11T17:13:38Z"}, + {"id": "user_437e724f37de412db6df8821968d8d3c", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User2", "phone_number": + "", "verified": true, "created_at": "2023-12-11T17:13:43Z"}, {"id": + "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", + "name": "Child Account Name22", "phone_number": "", "verified": + true, "created_at": "2024-01-04T19:56:21Z"}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "", "verified": true, "created_at": + "2024-01-19T21:42:21Z"}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "", "verified": true, "created_at": "2024-01-19T21:44:18Z"}], + "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '1100' + - '1114' content-type: - application/json; charset=utf-8 expires: @@ -55,82 +55,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 0af7a3d566abfc23e787564900271db7 - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb36nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq fa152d4755 - x-runtime: - - '0.028399' - x-version-label: - - easypost-202408012013-135f8f9b76-master - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - authorization: - - - user-agent: - - - method: GET - uri: https://api.easypost.com/v2/users/children?after_id=user_f3b7021a2d924bedb080d7caa00d753e&page_size=5 - response: - body: - string: '{"children": [{"id": "user_327a26c77be24e24b165450e7c0de3b9", "object": - "User", "parent_id": "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test - User", "phone_number": "", "verified": true, "created_at": "2024-07-26T19:08:21Z"}, - {"id": "user_acfa6f7268d14e449edd1fe6f4ab64cc", "object": "User", "parent_id": - "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2024-07-29T17:41:32Z"}, {"id": - "user_4b066506d76940aeb28943506eb76941", "object": "User", "parent_id": "user_0f6b83e3530b401cb1e8aeaa6a250d4d", - "name": "Test User", "phone_number": "", "verified": true, "created_at": - "2024-07-29T17:46:31Z"}, {"id": "user_48b7c8e5981647a8aee52aa1cb910280", "object": - "User", "parent_id": "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test - User", "phone_number": "", "verified": true, "created_at": "2024-07-29T18:07:19Z"}, - {"id": "user_dc18fb938f184bfd8f345d7fb1469130", "object": "User", "parent_id": - "user_0f6b83e3530b401cb1e8aeaa6a250d4d", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2024-07-29T21:45:16Z"}], "has_more": - true}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '1100' - content-type: - - application/json; charset=utf-8 - expires: - - '0' - pragma: - - no-cache - referrer-policy: - - strict-origin-when-cross-origin - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-backend: - - easypost - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-ep-request-uuid: - - 0af7a3d566abfc23e787564900271dd8 + - 62c1f5d866be5cf2e788659f00177866 x-frame-options: - SAMEORIGIN x-node: @@ -139,11 +64,11 @@ interactions: - none x-proxied: - intlb4nuq c0f5e722d1 - - extlb2nuq fa152d4755 + - extlb2nuq b6e1b5034c x-runtime: - - '0.032033' + - '0.075461' x-version-label: - - easypost-202408012013-135f8f9b76-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_create.yaml b/tests/cassettes/test_user_create.yaml index b175ff3e..ff640626 100644 --- a/tests/cassettes/test_user_create.yaml +++ b/tests/cassettes/test_user_create.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: '{"id": "user_ac05e2551db340168b5d6ecc5cd42555", "object": "User", "parent_id": + string: '{"id": "user_f70e80d019254d46a4cc0c071f2c2287", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2023-05-16T17:00:53Z", "default_carbon_offset": + "", "verified": true, "created_at": "2024-08-15T19:54:21Z", "default_carbon_offset": false, "has_elevate_access": false, "children": [], "api_keys": [{"object": - "ApiKey", "key": "", "mode": "test", "created_at": "2023-05-16T17:00:53Z", - "active": true, "id": "ak_e7be6b181c294e03a565b11a63e5c3ff"}, {"object": "ApiKey", - "key": "", "mode": "production", "created_at": "2023-05-16T17:00:53Z", - "active": true, "id": "ak_374b72e593704d20b2935ecb209cca4e"}]}' + "ApiKey", "key": "", "mode": "test", "created_at": "2024-08-15T19:54:21Z", + "active": true, "id": "ak_a5aa3efe3d054c8bbdd8e1c6a5f57394"}, {"object": "ApiKey", + "key": "", "mode": "production", "created_at": "2024-08-15T19:54:21Z", + "active": true, "id": "ak_fbf7ff8159bd4502b6712c91270c9c2d"}]}' headers: cache-control: - private, no-cache, no-store @@ -35,8 +35,6 @@ interactions: - '691' content-type: - application/json; charset=utf-8 - etag: - - W/"1111a1c2566ee91693d65041b3e68349" expires: - '0' pragma: @@ -54,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e086463b6c4e787407c002d8a1e + - 62c1f5d766be5cede788657f001773c1 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.849864' + - '0.484531' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -89,7 +87,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/users/user_ac05e2551db340168b5d6ecc5cd42555 + uri: https://api.easypost.com/v2/users/user_f70e80d019254d46a4cc0c071f2c2287 response: body: string: '' @@ -111,20 +109,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e086463b6c5e787407c002d8aa0 + - 62c1f5d766be5ceee788657f00177433 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.264345' + - '0.096002' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_delete.yaml b/tests/cassettes/test_user_delete.yaml index f97d7065..db3b97ee 100644 --- a/tests/cassettes/test_user_delete.yaml +++ b/tests/cassettes/test_user_delete.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: '{"id": "user_96f5c85622a34e6fba1a24b70d7cac9b", "object": "User", "parent_id": + string: '{"id": "user_22d716f4cb694738b901863285eef43a", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2023-05-16T17:00:55Z", "default_carbon_offset": + "", "verified": true, "created_at": "2024-08-15T19:54:25Z", "default_carbon_offset": false, "has_elevate_access": false, "children": [], "api_keys": [{"object": - "ApiKey", "key": "", "mode": "test", "created_at": "2023-05-16T17:00:55Z", - "active": true, "id": "ak_e11f2cd9b9cd42e9ac388091d27404db"}, {"object": "ApiKey", - "key": "", "mode": "production", "created_at": "2023-05-16T17:00:55Z", - "active": true, "id": "ak_d6beedb898af426880e2af148d3993fb"}]}' + "ApiKey", "key": "", "mode": "test", "created_at": "2024-08-15T19:54:25Z", + "active": true, "id": "ak_88a847255b7747b699fb8d64678003c5"}, {"object": "ApiKey", + "key": "", "mode": "production", "created_at": "2024-08-15T19:54:25Z", + "active": true, "id": "ak_098754e4152e48f0a8ce3416980c037e"}]}' headers: cache-control: - private, no-cache, no-store @@ -35,8 +35,6 @@ interactions: - '691' content-type: - application/json; charset=utf-8 - etag: - - W/"847204556f926562bba422da6cf722a2" expires: - '0' pragma: @@ -54,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e086463b6c7e7874081002d8b71 + - 62c1f5d766be5cf0e78865850017769c x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.827802' + - '0.530450' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -89,7 +87,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/users/user_96f5c85622a34e6fba1a24b70d7cac9b + uri: https://api.easypost.com/v2/users/user_22d716f4cb694738b901863285eef43a response: body: string: '' @@ -111,20 +109,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e086463b6c8e7874081002d8bed + - 62c1f5d766be5cf1e78865850017772b x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.121275' + - '0.123250' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_retrieve.yaml b/tests/cassettes/test_user_retrieve.yaml index 9118105a..85ccc2cd 100644 --- a/tests/cassettes/test_user_retrieve.yaml +++ b/tests/cassettes/test_user_retrieve.yaml @@ -17,22 +17,38 @@ interactions: response: body: string: '{"id": "user_54356a6b96c940d8913961a3c7b909f2", "object": "User", "parent_id": - null, "name": "EasyPost Python Client Library Tests", "phone_number": "", - "verified": true, "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": - false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": - "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", - "recharge_threshold": "0.00", "has_billing_method": false, "cc_fee_rate": - "0.03", "default_insurance_amount": null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": - "1.00", "email": "", "children": []}' + null, "name": "New Name", "phone_number": "", "verified": true, + "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": false, "has_elevate_access": + false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": + "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", + "has_billing_method": false, "cc_fee_rate": "0.03", "default_insurance_amount": + null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": "1.00", "email": + "", "children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User2", "phone_number": "8005550100", "verified": true, "created_at": + "2023-12-11T17:13:38Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "8005550100", "verified": true, "created_at": "2023-12-11T17:13:43Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}, + {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Child Account Name22", "phone_number": + "8005550100", "verified": true, "created_at": "2024-01-04T19:56:21Z", "default_carbon_offset": + false, "has_elevate_access": false, "children": []}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "8005550100", "verified": true, "created_at": + "2024-01-19T21:42:21Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "8005550100", "verified": true, "created_at": "2024-01-19T21:44:18Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '601' + - '2010' content-type: - application/json; charset=utf-8 - etag: - - W/"37fad0de2fa69ce547baa7b7ecd8f745" expires: - '0' pragma: @@ -50,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e066463b6c6e787407d002d8adc + - 62c1f5db66be5ceee78865810017747d x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.037841' + - '0.146401' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -87,22 +103,38 @@ interactions: response: body: string: '{"id": "user_54356a6b96c940d8913961a3c7b909f2", "object": "User", "parent_id": - null, "name": "EasyPost Python Client Library Tests", "phone_number": "", - "verified": true, "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": - false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": - "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", - "recharge_threshold": "0.00", "has_billing_method": false, "cc_fee_rate": - "0.03", "default_insurance_amount": null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": - "1.00", "email": "", "children": []}' + null, "name": "New Name", "phone_number": "", "verified": true, + "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": false, "has_elevate_access": + false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": + "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", + "has_billing_method": false, "cc_fee_rate": "0.03", "default_insurance_amount": + null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": "1.00", "email": + "", "children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User2", "phone_number": "8005550100", "verified": true, "created_at": + "2023-12-11T17:13:38Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "8005550100", "verified": true, "created_at": "2023-12-11T17:13:43Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}, + {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Child Account Name22", "phone_number": + "8005550100", "verified": true, "created_at": "2024-01-04T19:56:21Z", "default_carbon_offset": + false, "has_elevate_access": false, "children": []}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "8005550100", "verified": true, "created_at": + "2024-01-19T21:42:21Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "8005550100", "verified": true, "created_at": "2024-01-19T21:44:18Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '601' + - '2010' content-type: - application/json; charset=utf-8 - etag: - - W/"37fad0de2fa69ce547baa7b7ecd8f745" expires: - '0' pragma: @@ -120,20 +152,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e066463b6c6e787407d002d8ae8 + - 62c1f5db66be5ceee7886581001774b6 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.035436' + - '0.184341' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_retrieve_me.yaml b/tests/cassettes/test_user_retrieve_me.yaml index b08e8a72..bcfbcaa0 100644 --- a/tests/cassettes/test_user_retrieve_me.yaml +++ b/tests/cassettes/test_user_retrieve_me.yaml @@ -17,22 +17,38 @@ interactions: response: body: string: '{"id": "user_54356a6b96c940d8913961a3c7b909f2", "object": "User", "parent_id": - null, "name": "EasyPost Python Client Library Tests", "phone_number": "", - "verified": true, "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": - false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": - "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", - "recharge_threshold": "0.00", "has_billing_method": false, "cc_fee_rate": - "0.03", "default_insurance_amount": null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": - "1.00", "email": "", "children": []}' + null, "name": "New Name", "phone_number": "", "verified": true, + "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": false, "has_elevate_access": + false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": + "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", + "has_billing_method": false, "cc_fee_rate": "0.03", "default_insurance_amount": + null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": "1.00", "email": + "", "children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User2", "phone_number": "8005550100", "verified": true, "created_at": + "2023-12-11T17:13:38Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "8005550100", "verified": true, "created_at": "2023-12-11T17:13:43Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}, + {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Child Account Name22", "phone_number": + "8005550100", "verified": true, "created_at": "2024-01-04T19:56:21Z", "default_carbon_offset": + false, "has_elevate_access": false, "children": []}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "8005550100", "verified": true, "created_at": + "2024-01-19T21:42:21Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "8005550100", "verified": true, "created_at": "2024-01-19T21:44:18Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '601' + - '2010' content-type: - application/json; charset=utf-8 - etag: - - W/"37fad0de2fa69ce547baa7b7ecd8f745" expires: - '0' pragma: @@ -50,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e066463b6c6e787407f002d8b2e + - 62c1f5db66be5cefe788658300177593 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.036515' + - '0.112963' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_retrieve_no_id.yaml b/tests/cassettes/test_user_retrieve_no_id.yaml index 14cc80c6..ce7a84c6 100644 --- a/tests/cassettes/test_user_retrieve_no_id.yaml +++ b/tests/cassettes/test_user_retrieve_no_id.yaml @@ -17,22 +17,38 @@ interactions: response: body: string: '{"id": "user_54356a6b96c940d8913961a3c7b909f2", "object": "User", "parent_id": - null, "name": "EasyPost Python Client Library Tests", "phone_number": "", - "verified": true, "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": - false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": - "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", - "recharge_threshold": "0.00", "has_billing_method": false, "cc_fee_rate": - "0.03", "default_insurance_amount": null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": - "1.00", "email": "", "children": []}' + null, "name": "New Name", "phone_number": "", "verified": true, + "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": false, "has_elevate_access": + false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": + "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", + "has_billing_method": false, "cc_fee_rate": "0.03", "default_insurance_amount": + null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": "1.00", "email": + "", "children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User2", "phone_number": "8005550100", "verified": true, "created_at": + "2023-12-11T17:13:38Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "8005550100", "verified": true, "created_at": "2023-12-11T17:13:43Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}, + {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Child Account Name22", "phone_number": + "8005550100", "verified": true, "created_at": "2024-01-04T19:56:21Z", "default_carbon_offset": + false, "has_elevate_access": false, "children": []}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "8005550100", "verified": true, "created_at": + "2024-01-19T21:42:21Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "8005550100", "verified": true, "created_at": "2024-01-19T21:44:18Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '601' + - '2010' content-type: - application/json; charset=utf-8 - etag: - - W/"37fad0de2fa69ce547baa7b7ecd8f745" expires: - '0' pragma: @@ -50,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e086463b6c6e787407e002d8b09 + - 62c1f5d866be5cefe78865820017751e x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.029911' + - '0.098807' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_update.yaml b/tests/cassettes/test_user_update.yaml index 3e271e8f..a4d7d869 100644 --- a/tests/cassettes/test_user_update.yaml +++ b/tests/cassettes/test_user_update.yaml @@ -17,22 +17,38 @@ interactions: response: body: string: '{"id": "user_54356a6b96c940d8913961a3c7b909f2", "object": "User", "parent_id": - null, "name": "EasyPost Python Client Library Tests", "phone_number": "", - "verified": true, "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": - false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": - "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", - "recharge_threshold": "0.00", "has_billing_method": false, "cc_fee_rate": - "0.03", "default_insurance_amount": null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": - "1.00", "email": "", "children": []}' + null, "name": "New Name", "phone_number": "", "verified": true, + "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": false, "has_elevate_access": + false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": + "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", + "has_billing_method": false, "cc_fee_rate": "0.03", "default_insurance_amount": + null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": "1.00", "email": + "", "children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User2", "phone_number": "8005550100", "verified": true, "created_at": + "2023-12-11T17:13:38Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "8005550100", "verified": true, "created_at": "2023-12-11T17:13:43Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}, + {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Child Account Name22", "phone_number": + "8005550100", "verified": true, "created_at": "2024-01-04T19:56:21Z", "default_carbon_offset": + false, "has_elevate_access": false, "children": []}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "8005550100", "verified": true, "created_at": + "2024-01-19T21:42:21Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "8005550100", "verified": true, "created_at": "2024-01-19T21:44:18Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '601' + - '2010' content-type: - application/json; charset=utf-8 - etag: - - W/"37fad0de2fa69ce547baa7b7ecd8f745" expires: - '0' pragma: @@ -50,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e46463b756e787443c002a4014 + - 62c1f5dd66be5cefe7886584001775e7 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.031681' + - '0.137382' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -97,16 +113,32 @@ interactions: "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", "has_billing_method": false, "cc_fee_rate": "0.03", "default_insurance_amount": null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": "1.00", "email": - "", "children": []}' + "", "children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User2", "phone_number": "8005550100", "verified": true, "created_at": + "2023-12-11T17:13:38Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "8005550100", "verified": true, "created_at": "2023-12-11T17:13:43Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}, + {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Child Account Name22", "phone_number": + "8005550100", "verified": true, "created_at": "2024-01-04T19:56:21Z", "default_carbon_offset": + false, "has_elevate_access": false, "children": []}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "8005550100", "verified": true, "created_at": + "2024-01-19T21:42:21Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "8005550100", "verified": true, "created_at": "2024-01-19T21:44:18Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '573' + - '2010' content-type: - application/json; charset=utf-8 - etag: - - W/"4d7e243262cf39546f0f5363c1c1e8e0" expires: - '0' pragma: @@ -124,20 +156,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e46463b756e787443c002a4022 + - 62c1f5dd66be5cf0e78865840017762e x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.215579' + - '0.341596' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_update_brand.yaml b/tests/cassettes/test_user_update_brand.yaml index 5ffab8d9..e40b0389 100644 --- a/tests/cassettes/test_user_update_brand.yaml +++ b/tests/cassettes/test_user_update_brand.yaml @@ -17,22 +17,38 @@ interactions: response: body: string: '{"id": "user_54356a6b96c940d8913961a3c7b909f2", "object": "User", "parent_id": - null, "name": "EasyPost Python Client Library Tests", "phone_number": "", - "verified": true, "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": - false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": - "0.00000", "recharge_amount": "100.00", "secondary_recharge_amount": "100.00", - "recharge_threshold": "0.00", "has_billing_method": false, "cc_fee_rate": - "0.03", "default_insurance_amount": null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": - "1.00", "email": "", "children": []}' + null, "name": "New Name", "phone_number": "", "verified": true, + "created_at": "2017-03-01T03:01:34Z", "default_carbon_offset": false, "has_elevate_access": + false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": + "100.00", "secondary_recharge_amount": "100.00", "recharge_threshold": "0.00", + "has_billing_method": false, "cc_fee_rate": "0.03", "default_insurance_amount": + null, "insurance_fee_rate": "0.01", "insurance_fee_minimum": "1.00", "email": + "", "children": [{"id": "user_584be78af2f141e988b6c60dda9dd8fd", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User2", "phone_number": "8005550100", "verified": true, "created_at": + "2023-12-11T17:13:38Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_437e724f37de412db6df8821968d8d3c", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User2", "phone_number": "8005550100", "verified": true, "created_at": "2023-12-11T17:13:43Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}, + {"id": "user_2553102e90de43dea0b9fa7f8c8d7e33", "object": "User", "parent_id": + "user_54356a6b96c940d8913961a3c7b909f2", "name": "Child Account Name22", "phone_number": + "8005550100", "verified": true, "created_at": "2024-01-04T19:56:21Z", "default_carbon_offset": + false, "has_elevate_access": false, "children": []}, {"id": "user_31754439d4524fbb8867d138de537e12", + "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": + "Test User", "phone_number": "8005550100", "verified": true, "created_at": + "2024-01-19T21:42:21Z", "default_carbon_offset": false, "has_elevate_access": + false, "children": []}, {"id": "user_d26377e80676431d88c17d8b140d365a", "object": + "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test + User", "phone_number": "8005550100", "verified": true, "created_at": "2024-01-19T21:44:18Z", + "default_carbon_offset": false, "has_elevate_access": false, "children": []}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '601' + - '2010' content-type: - application/json; charset=utf-8 - etag: - - W/"37fad0de2fa69ce547baa7b7ecd8f745" expires: - '0' pragma: @@ -50,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e076463b6c9e787409d002d8c64 + - 62c1f5dc66be5cf1e788659d00177774 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.103212' + - '0.091168' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -90,20 +106,17 @@ interactions: uri: https://api.easypost.com/v2/users/user_54356a6b96c940d8913961a3c7b909f2/brand response: body: - string: '{"id": "brd_79967d34dc894866850bc8342c84dc41", "color": "#123456", - "logo": "https://assets.easypost.com/assets/images/branding/easypost-primary-logo.7324aa54b64b34d6cd70ca5ba4d1842d.svg", - "logo_href": "https://www.easypost.com", "name": "EasyPost", "ad": null, "ad_href": - null, "object": "Brand", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", - "background_color": "#123456", "theme": "theme1"}' + string: '{"ad": null, "ad_href": null, "background_color": "#FFFFFF", "color": + "#123456", "id": "brd_79967d34dc894866850bc8342c84dc41", "logo": "https://assets.easypost.com/assets/images/branding/easypost-primary-logo.7324aa54b64b34d6cd70ca5ba4d1842d.svg", + "logo_href": "https://www.easypost.com", "name": "EasyPost", "object": "Brand", + "theme": "theme1", "user_id": "user_54356a6b96c940d8913961a3c7b909f2"}' headers: cache-control: - private, no-cache, no-store content-length: - - '377' + - '378' content-type: - application/json; charset=utf-8 - etag: - - W/"3ed4a169f34d67d2cd97fcacca1fbab0" expires: - '0' pragma: @@ -121,20 +134,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e076463b6c9e787409d002d8c80 + - 62c1f5dc66be5cf1e788659d0017779c x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.021203' + - '0.094800' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_all.yaml b/tests/cassettes/test_webhook_all.yaml index 6ca47ca8..18447ef1 100644 --- a/tests/cassettes/test_webhook_all.yaml +++ b/tests/cassettes/test_webhook_all.yaml @@ -24,8 +24,6 @@ interactions: - '15' content-type: - application/json; charset=utf-8 - etag: - - W/"d03ff1e2df7ad33907b2086ec5f9e0a9" expires: - '0' pragma: @@ -38,27 +36,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - de846e016463ba57e78750fc002f5534 + - 62c1f5d966be5cf4e78865a200177aa3 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.021266' + - '0.035980' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_create.yaml b/tests/cassettes/test_webhook_create.yaml index 5f8dff13..3ce6296d 100644 --- a/tests/cassettes/test_webhook_create.yaml +++ b/tests/cassettes/test_webhook_create.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_578ffa82f40d11ed8c1c191209204fb8", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2023-05-16T17:16:06Z", + string: '{"id": "hook_2d6400825b4011efbc7c119ee916485a", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:54:27Z", "disabled_at": null}' headers: cache-control: @@ -30,8 +30,6 @@ interactions: - '161' content-type: - application/json; charset=utf-8 - etag: - - W/"d3b63c8e76bcda450658d4094d8d0ccc" expires: - '0' pragma: @@ -44,25 +42,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - de846e056463ba55e7874dec002f5407 + - 62c1f5d966be5cf2e78865a0001778b0 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.146285' + - '0.126613' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -84,7 +84,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_578ffa82f40d11ed8c1c191209204fb8 + uri: https://api.easypost.com/v2/webhooks/hook_2d6400825b4011efbc7c119ee916485a response: body: string: '{}' @@ -95,8 +95,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -114,20 +112,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e056463ba56e7874dec002f5428 + - 62c1f5d966be5cf3e78865a0001778f4 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.386456' + - '0.397231' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_delete.yaml b/tests/cassettes/test_webhook_delete.yaml index 3c3ef268..7258cea4 100644 --- a/tests/cassettes/test_webhook_delete.yaml +++ b/tests/cassettes/test_webhook_delete.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_59f616f8f40d11ed9ffb13df0888d030", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2023-05-16T17:16:10Z", + string: '{"id": "hook_2fa3f7085b4011efacad6d6452404a67", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:54:31Z", "disabled_at": null}' headers: cache-control: @@ -30,8 +30,6 @@ interactions: - '161' content-type: - application/json; charset=utf-8 - etag: - - W/"9b2f3375e1a8caf2420dc0624fed25db" expires: - '0' pragma: @@ -49,20 +47,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e066463ba59e78750fe002f5664 + - 62c1f5d666be5cf6e78865a400177c62 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.150771' + - '0.150746' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -84,7 +82,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_59f616f8f40d11ed9ffb13df0888d030 + uri: https://api.easypost.com/v2/webhooks/hook_2fa3f7085b4011efacad6d6452404a67 response: body: string: '{}' @@ -95,8 +93,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -109,25 +105,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - de846e066463ba5ae78750fe002f5685 + - 62c1f5d666be5cf6e78865a400177c94 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.394054' + - '0.334570' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_retrieve.yaml b/tests/cassettes/test_webhook_retrieve.yaml index 62504da8..6140342e 100644 --- a/tests/cassettes/test_webhook_retrieve.yaml +++ b/tests/cassettes/test_webhook_retrieve.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_58353ec0f40d11ed945419a4606044e7", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2023-05-16T17:16:07Z", + string: '{"id": "hook_2de2755c5b4011efac435764850b8a0d", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:54:28Z", "disabled_at": null}' headers: cache-control: @@ -30,8 +30,6 @@ interactions: - '161' content-type: - application/json; charset=utf-8 - etag: - - W/"b1f8350fb1fef764dcc44d7d26016b07" expires: - '0' pragma: @@ -44,25 +42,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - de846e016463ba56e78750fb002f5496 + - 62c1f5dd66be5cf3e78865a1001779c1 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.189105' + - '0.179043' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -82,11 +82,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/webhooks/hook_58353ec0f40d11ed945419a4606044e7 + uri: https://api.easypost.com/v2/webhooks/hook_2de2755c5b4011efac435764850b8a0d response: body: - string: '{"id": "hook_58353ec0f40d11ed945419a4606044e7", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2023-05-16T17:16:07Z", + string: '{"id": "hook_2de2755c5b4011efac435764850b8a0d", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:54:28Z", "disabled_at": null}' headers: cache-control: @@ -95,8 +95,6 @@ interactions: - '161' content-type: - application/json; charset=utf-8 - etag: - - W/"b1f8350fb1fef764dcc44d7d26016b07" expires: - '0' pragma: @@ -114,20 +112,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e016463ba57e78750fb002f54cb + - 62c1f5dd66be5cf3e78865a1001779fe x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.026276' + - '0.033937' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -149,7 +147,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_58353ec0f40d11ed945419a4606044e7 + uri: https://api.easypost.com/v2/webhooks/hook_2de2755c5b4011efac435764850b8a0d response: body: string: '{}' @@ -160,8 +158,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -174,27 +170,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - de846e016463ba57e78750fb002f54dd + - 62c1f5dd66be5cf4e78865a100177a17 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.327814' + - '0.350575' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_update.yaml b/tests/cassettes/test_webhook_update.yaml index 55b96e32..f6b522e1 100644 --- a/tests/cassettes/test_webhook_update.yaml +++ b/tests/cassettes/test_webhook_update.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_58f6b762f40d11ed9f8d43d6e343546b", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2023-05-16T17:16:08Z", + string: '{"id": "hook_2e96c0205b4011efaa5e4f8e947e652b", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:54:29Z", "disabled_at": null}' headers: cache-control: @@ -30,8 +30,6 @@ interactions: - '161' content-type: - application/json; charset=utf-8 - etag: - - W/"7514fb79d1a9b3bf25ce1826286c214b" expires: - '0' pragma: @@ -44,25 +42,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - de846e066463ba58e78750fd002f555a + - 62c1f5d966be5cf4e78865a300177ade x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.163981' + - '0.147174' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -86,11 +86,11 @@ interactions: user-agent: - method: PATCH - uri: https://api.easypost.com/v2/webhooks/hook_58f6b762f40d11ed9f8d43d6e343546b + uri: https://api.easypost.com/v2/webhooks/hook_2e96c0205b4011efaa5e4f8e947e652b response: body: - string: '{"id": "hook_58f6b762f40d11ed9f8d43d6e343546b", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2023-05-16T17:16:08Z", + string: '{"id": "hook_2e96c0205b4011efaa5e4f8e947e652b", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:54:29Z", "disabled_at": null}' headers: cache-control: @@ -99,8 +99,6 @@ interactions: - '161' content-type: - application/json; charset=utf-8 - etag: - - W/"7514fb79d1a9b3bf25ce1826286c214b" expires: - '0' pragma: @@ -113,27 +111,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - de846e066463ba58e78750fd002f55a3 + - 62c1f5d966be5cf5e78865a300177b13 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.487077' + - '0.553461' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: @@ -155,7 +151,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_58f6b762f40d11ed9f8d43d6e343546b + uri: https://api.easypost.com/v2/webhooks/hook_2e96c0205b4011efaa5e4f8e947e652b response: body: string: '{}' @@ -166,8 +162,6 @@ interactions: - '2' content-type: - application/json; charset=utf-8 - etag: - - W/"44136fa355b3678a1146ad16f7e8649e" expires: - '0' pragma: @@ -185,20 +179,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e066463ba59e78750fd002f55fe + - 62c1f5d966be5cf5e78865a300177bc0 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq c0f5e722d1 + - extlb2nuq b6e1b5034c x-runtime: - - '0.390016' + - '0.447202' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202408151917-1527448f18-master x-xss-protection: - 1; mode=block status: diff --git a/tests/conftest.py b/tests/conftest.py index 6b2dbad4..a95732dc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -218,11 +218,6 @@ def report_date(): return "2022-05-04" -@pytest.fixture -def webhook_url(): - return read_fixture_data()["webhook_url"] - - @pytest.fixture def ca_address_1(): return read_fixture_data()["addresses"]["ca_address_1"] @@ -269,7 +264,14 @@ def full_shipment(): @pytest.fixture -def one_call_buy_shipment(ca_address_1, ca_address_2, basic_parcel, usps_service, usps_carrier_account_id, usps): +def one_call_buy_shipment( + ca_address_1, + ca_address_2, + basic_parcel, + usps_service, + usps_carrier_account_id, + usps, +): return { "to_address": ca_address_1, "from_address": ca_address_2, @@ -286,7 +288,7 @@ def basic_pickup(): If you need to re-record cassettes, increment the date below and ensure it is one day in the future, USPS only does "next-day" pickups including Saturday but not Sunday or Holidays. """ - pickup_date = "2023-12-17" + pickup_date = "2024-08-17" pickup_data = read_fixture_data()["pickups"]["basic"] pickup_data["min_datetime"] = pickup_date @@ -334,6 +336,21 @@ def event_bytes(): return json.dumps(event_body, separators=(",", ":")).encode() +@pytest.fixture +def webhook_hmac_signature(): + return read_fixture_data()["webhook_hmac_signature"] + + +@pytest.fixture +def webhook_secret(): + return read_fixture_data()["webhook_secret"] + + +@pytest.fixture +def webhook_url(): + return read_fixture_data()["webhook_url"] + + @pytest.fixture def credit_card_details(): """The credit card details below are for a valid proxy card usable @@ -351,9 +368,9 @@ def rma_form_options(): @pytest.fixture def planned_ship_date(): - return "2024-07-11" + return "2024-08-15" @pytest.fixture def desired_delivery_date(): - return "2024-07-16" + return "2024-08-18" diff --git a/tests/test_beta_rate.py b/tests/test_beta_rate.py index 42aa9ec8..8c228fbf 100644 --- a/tests/test_beta_rate.py +++ b/tests/test_beta_rate.py @@ -17,4 +17,4 @@ def test_beta_get_lowest_stateless_rate(basic_shipment, test_client): lowest_stateless_rate = get_lowest_stateless_rate(stateless_rates) - assert lowest_stateless_rate["service"] == "First" + assert lowest_stateless_rate["service"] == "GroundAdvantage" diff --git a/tests/test_beta_referral_customer.py b/tests/test_beta_referral_customer.py index c79d7098..9740c1c9 100644 --- a/tests/test_beta_referral_customer.py +++ b/tests/test_beta_referral_customer.py @@ -15,7 +15,7 @@ def test_beta_referral_customer_add_payment_method(referral_customer_prod_client priority="primary", ) - assert str(error.value) == "Invalid Payment Gateway Reference." + assert str(error.value) == "Invalid connect integration." @pytest.mark.vcr() diff --git a/tests/test_order.py b/tests/test_order.py index 6e2a89f3..2d89bcaf 100644 --- a/tests/test_order.py +++ b/tests/test_order.py @@ -56,13 +56,13 @@ def test_order_lowest_rate(basic_order, test_client): # Test lowest rate with no filters lowest_rate = order.lowest_rate() assert lowest_rate.service == "GroundAdvantage" - assert lowest_rate.rate == "11.33" + assert lowest_rate.rate == "11.40" assert lowest_rate.carrier == "USPS" # Test lowest rate with service filter (this rate is higher than the lowest but should filter) lowest_rate_service = order.lowest_rate(services=["Priority"]) assert lowest_rate_service.service == "Priority" - assert lowest_rate_service.rate == "13.79" + assert lowest_rate_service.rate == "14.48" assert lowest_rate_service.carrier == "USPS" # Test lowest rate with carrier filter (should error due to bad carrier) diff --git a/tests/test_pickup.py b/tests/test_pickup.py index 09200c1c..f142c4f0 100644 --- a/tests/test_pickup.py +++ b/tests/test_pickup.py @@ -63,7 +63,7 @@ def test_pickup_retrieve(one_call_buy_shipment, basic_pickup, test_client): retrieved_pickup = test_client.pickup.retrieve(pickup.id) assert isinstance(retrieved_pickup, Pickup) - assert retrieved_pickup == pickup + assert retrieved_pickup.id == pickup.id @pytest.mark.vcr() diff --git a/tests/test_referral_customer.py b/tests/test_referral_customer.py index 089ff785..94e1cec0 100644 --- a/tests/test_referral_customer.py +++ b/tests/test_referral_customer.py @@ -94,13 +94,14 @@ def test_referral_customer_add_credit_card(partner_user_prod_client, credit_card cvc=credit_card_details["cvc"], ) - assert str.startswith(added_credit_card.id, "card_") + assert str.startswith(added_credit_card.id, "pm_") assert added_credit_card.last4 == "6170" @patch("easypost.services.referral_customer_service.ReferralCustomerService._retrieve_easypost_stripe_api_key") @patch( - "easypost.services.referral_customer_service.ReferralCustomerService._create_stripe_token", side_effect=Exception() + "easypost.services.referral_customer_service.ReferralCustomerService._create_stripe_token", + side_effect=Exception(), ) def test_referral_add_credit_card_error( mock_stripe_token, diff --git a/tests/test_shipment.py b/tests/test_shipment.py index 9811dd80..a1fda14f 100644 --- a/tests/test_shipment.py +++ b/tests/test_shipment.py @@ -204,7 +204,7 @@ def test_shipment_lowest_rate(full_shipment, test_client): # Test lowest rate with service filter (this rate is higher than the lowest but should filter) lowest_rate_service = shipment.lowest_rate(services=["Priority"]) assert lowest_rate_service.service == "Priority" - assert lowest_rate_service.rate == "6.95" + assert lowest_rate_service.rate == "6.90" assert lowest_rate_service.carrier == "USPS" # Test lowest rate with carrier filter (should error due to bad carrier) diff --git a/tests/test_webhook.py b/tests/test_webhook.py index 5a42d8d6..386504bd 100644 --- a/tests/test_webhook.py +++ b/tests/test_webhook.py @@ -63,11 +63,9 @@ def test_webhook_delete(webhook_url, test_client): assert False -def test_validate_webhook(event_bytes): - webhook_secret = "sécret" - expected_hmac_signature = "hmac-sha256-hex=e93977c8ccb20363d51a62b3fe1fc402b7829be1152da9e88cf9e8d07115a46b" +def test_validate_webhook(event_bytes, webhook_secret, webhook_hmac_signature): headers = { - "X-Hmac-Signature": expected_hmac_signature, + "X-Hmac-Signature": webhook_hmac_signature, } webhook_body = validate_webhook( @@ -76,7 +74,8 @@ def test_validate_webhook(event_bytes): webhook_secret=webhook_secret, ) - assert webhook_body["description"] == "batch.created" + assert webhook_body["description"] == "tracker.updated" + assert webhook_body["result"]["weight"] == 614.4 # Ensure we convert floats properly def test_validate_webhook_invalid_secret(event_bytes):