diff --git a/official/docs/node/current/smartrate/retrieve-standalone-smartrate-deliver-by.js b/official/docs/node/current/smartrate/retrieve-standalone-smartrate-deliver-by.js index c372827f..5d826547 100644 --- a/official/docs/node/current/smartrate/retrieve-standalone-smartrate-deliver-by.js +++ b/official/docs/node/current/smartrate/retrieve-standalone-smartrate-deliver-by.js @@ -3,11 +3,11 @@ const EasyPostClient = require('@easypost/api'); const client = new EasyPostClient('EASYPOST_API_KEY'); const params = { - from_zip: "10001", - to_zip: "10002", - planned_ship_date: "2024-07-18", - carriers: ["UPS"], - }; + from_zip: '10001', + to_zip: '10002', + planned_ship_date: '2024-07-18', + carriers: ['UPS'], +}; (async () => { const results = await client.SmartRate.estimateDeliveryDate(params); diff --git a/official/docs/node/current/smartrate/retrieve-standalone-smartrate-deliver-on.js b/official/docs/node/current/smartrate/retrieve-standalone-smartrate-deliver-on.js index 878b8d5d..cd0e5fb3 100644 --- a/official/docs/node/current/smartrate/retrieve-standalone-smartrate-deliver-on.js +++ b/official/docs/node/current/smartrate/retrieve-standalone-smartrate-deliver-on.js @@ -3,11 +3,11 @@ const EasyPostClient = require('@easypost/api'); const client = new EasyPostClient('EASYPOST_API_KEY'); const params = { - from_zip: "10001", - to_zip: "10002", - desired_delivery_date: "2024-07-18", - carriers: ["UPS"], - }; + from_zip: '10001', + to_zip: '10002', + desired_delivery_date: '2024-07-18', + carriers: ['UPS'], +}; (async () => { const results = await client.SmartRate.recommendShipDate(params); diff --git a/official/docs/responses/smartrate/smartrate-retrieve-recommend-ship-date.json b/official/docs/responses/smartrate/smartrate-retrieve-recommend-ship-date.json index 9bf7d6da..a8dbf37b 100644 --- a/official/docs/responses/smartrate/smartrate-retrieve-recommend-ship-date.json +++ b/official/docs/responses/smartrate/smartrate-retrieve-recommend-ship-date.json @@ -1,194 +1,194 @@ { - "rates":[ - { - "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" + "rates": [ + { + "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 }, - "rate":{ - "carrier":"USPS", - "carrier_account_id":"ca_716f33fd9fd348238b85c2922237f98b", - "created_at":"2024-07-11T18:55:42Z", - "currency":"USD", - "delivery_date":null, - "delivery_date_guaranteed":false, - "delivery_days":2, - "est_delivery_days":2, - "id":"rate_bdfda26163de43878a65e0f456b30ddb", - "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_3d7216c496144494acf875f0a9555272", - "updated_at":"2024-07-11T18:55:42Z" - } - }, - { - "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" + "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_716f33fd9fd348238b85c2922237f98b", + "created_at": "2024-07-11T18:55:42Z", + "currency": "USD", + "delivery_date": null, + "delivery_date_guaranteed": false, + "delivery_days": 2, + "est_delivery_days": 2, + "id": "rate_bdfda26163de43878a65e0f456b30ddb", + "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_3d7216c496144494acf875f0a9555272", + "updated_at": "2024-07-11T18:55:42Z" + } + }, + { + "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 }, - "rate":{ - "carrier":"USPS", - "carrier_account_id":"ca_716f33fd9fd348238b85c2922237f98b", - "created_at":"2024-07-11T18:55:42Z", - "currency":"USD", - "delivery_date":null, - "delivery_date_guaranteed":false, - "delivery_days":3, - "est_delivery_days":3, - "id":"rate_475a7a2b833e401abe78bb26e3fda731", - "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_3d7216c496144494acf875f0a9555272", - "updated_at":"2024-07-11T18:55:42Z" - } - }, - { - "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" + "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_716f33fd9fd348238b85c2922237f98b", + "created_at": "2024-07-11T18:55:42Z", + "currency": "USD", + "delivery_date": null, + "delivery_date_guaranteed": false, + "delivery_days": 3, + "est_delivery_days": 3, + "id": "rate_475a7a2b833e401abe78bb26e3fda731", + "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_3d7216c496144494acf875f0a9555272", + "updated_at": "2024-07-11T18:55:42Z" + } + }, + { + "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 }, - "rate":{ - "carrier":"USPS", - "carrier_account_id":"ca_716f33fd9fd348238b85c2922237f98b", - "created_at":"2024-07-11T18:55:42Z", - "currency":"USD", - "delivery_date":null, - "delivery_date_guaranteed":false, - "delivery_days":3, - "est_delivery_days":3, - "id":"rate_253b47e9de5f4159ab4d1509adaf83cb", - "list_currency":"USD", - "list_rate":6.4, - "mode":"test", - "object":"Rate", - "rate":5.93, - "retail_currency":"USD", - "retail_rate":8.45, - "service":"First", - "shipment_id":"shp_3d7216c496144494acf875f0a9555272", - "updated_at":"2024-07-11T18:55:42Z" - } - }, - { - "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" + "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_716f33fd9fd348238b85c2922237f98b", + "created_at": "2024-07-11T18:55:42Z", + "currency": "USD", + "delivery_date": null, + "delivery_date_guaranteed": false, + "delivery_days": 3, + "est_delivery_days": 3, + "id": "rate_253b47e9de5f4159ab4d1509adaf83cb", + "list_currency": "USD", + "list_rate": 6.4, + "mode": "test", + "object": "Rate", + "rate": 5.93, + "retail_currency": "USD", + "retail_rate": 8.45, + "service": "First", + "shipment_id": "shp_3d7216c496144494acf875f0a9555272", + "updated_at": "2024-07-11T18:55:42Z" + } + }, + { + "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 }, - "rate":{ - "carrier":"USPS", - "carrier_account_id":"ca_716f33fd9fd348238b85c2922237f98b", - "created_at":"2024-07-11T18:55:42Z", - "currency":"USD", - "delivery_date":null, - "delivery_date_guaranteed":false, - "delivery_days":3, - "est_delivery_days":3, - "id":"rate_565d5a7580f54504af994b65f969ac1b", - "list_currency":"USD", - "list_rate":6.4, - "mode":"test", - "object":"Rate", - "rate":5.93, - "retail_currency":"USD", - "retail_rate":8.45, - "service":"ParcelSelect", - "shipment_id":"shp_3d7216c496144494acf875f0a9555272", - "updated_at":"2024-07-11T18:55:42Z" - } - }, - { - "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" + "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_716f33fd9fd348238b85c2922237f98b", + "created_at": "2024-07-11T18:55:42Z", + "currency": "USD", + "delivery_date": null, + "delivery_date_guaranteed": false, + "delivery_days": 3, + "est_delivery_days": 3, + "id": "rate_565d5a7580f54504af994b65f969ac1b", + "list_currency": "USD", + "list_rate": 6.4, + "mode": "test", + "object": "Rate", + "rate": 5.93, + "retail_currency": "USD", + "retail_rate": 8.45, + "service": "ParcelSelect", + "shipment_id": "shp_3d7216c496144494acf875f0a9555272", + "updated_at": "2024-07-11T18:55:42Z" + } + }, + { + "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 }, - "rate":{ - "carrier":"USPS", - "carrier_account_id":"ca_716f33fd9fd348238b85c2922237f98b", - "created_at":"2024-07-11T18:55:42Z", - "currency":"USD", - "delivery_date":null, - "delivery_date_guaranteed":false, - "delivery_days":2, - "est_delivery_days":2, - "id":"rate_33de2fbd3f5340eebebb47338723a631", - "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_3d7216c496144494acf875f0a9555272", - "updated_at":"2024-07-11T18:55:42Z" - } - } + "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_716f33fd9fd348238b85c2922237f98b", + "created_at": "2024-07-11T18:55:42Z", + "currency": "USD", + "delivery_date": null, + "delivery_date_guaranteed": false, + "delivery_days": 2, + "est_delivery_days": 2, + "id": "rate_33de2fbd3f5340eebebb47338723a631", + "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_3d7216c496144494acf875f0a9555272", + "updated_at": "2024-07-11T18:55:42Z" + } + } ] } diff --git a/official/docs/responses/smartrate/standalone-smartrate-retrieve-standalone-smartrate-deliver-by.json b/official/docs/responses/smartrate/standalone-smartrate-retrieve-standalone-smartrate-deliver-by.json index c203c919..58a8bb63 100644 --- a/official/docs/responses/smartrate/standalone-smartrate-retrieve-standalone-smartrate-deliver-by.json +++ b/official/docs/responses/smartrate/standalone-smartrate-retrieve-standalone-smartrate-deliver-by.json @@ -1,89 +1,89 @@ { - "carriers_without_tint_estimates":null, - "from_zip":"94107", - "planned_ship_date":"2024-07-16", - "results":[ - { - "carrier":"USPS", - "easypost_time_in_transit_data":{ - "days_in_transit":{ - "percentile_50":1, - "percentile_75":2, - "percentile_85":2, - "percentile_90":3, - "percentile_95":3, - "percentile_97":4, - "percentile_99":6 - }, - "easypost_estimated_delivery_date":"2024-07-17" + "carriers_without_tint_estimates": null, + "from_zip": "94107", + "planned_ship_date": "2024-07-16", + "results": [ + { + "carrier": "USPS", + "easypost_time_in_transit_data": { + "days_in_transit": { + "percentile_50": 1, + "percentile_75": 2, + "percentile_85": 2, + "percentile_90": 3, + "percentile_95": 3, + "percentile_97": 4, + "percentile_99": 6 }, - "service":"express" - }, - { - "carrier":"USPS", - "easypost_time_in_transit_data":{ - "days_in_transit":{ - "percentile_50":2, - "percentile_75":3, - "percentile_85":3, - "percentile_90":4, - "percentile_95":6, - "percentile_97":6, - "percentile_99":9 - }, - "easypost_estimated_delivery_date":"2024-07-18" + "easypost_estimated_delivery_date": "2024-07-17" + }, + "service": "express" + }, + { + "carrier": "USPS", + "easypost_time_in_transit_data": { + "days_in_transit": { + "percentile_50": 2, + "percentile_75": 3, + "percentile_85": 3, + "percentile_90": 4, + "percentile_95": 6, + "percentile_97": 6, + "percentile_99": 9 }, - "service":"groundadvantage" - }, - { - "carrier":"USPS", - "easypost_time_in_transit_data":{ - "days_in_transit":{ - "percentile_50":3, - "percentile_75":3, - "percentile_85":3, - "percentile_90":6, - "percentile_95":6, - "percentile_97":6, - "percentile_99":9 - }, - "easypost_estimated_delivery_date":"2024-07-18" + "easypost_estimated_delivery_date": "2024-07-18" + }, + "service": "groundadvantage" + }, + { + "carrier": "USPS", + "easypost_time_in_transit_data": { + "days_in_transit": { + "percentile_50": 3, + "percentile_75": 3, + "percentile_85": 3, + "percentile_90": 6, + "percentile_95": 6, + "percentile_97": 6, + "percentile_99": 9 }, - "service":"librarymail" - }, - { - "carrier":"USPS", - "easypost_time_in_transit_data":{ - "days_in_transit":{ - "percentile_50":3, - "percentile_75":3, - "percentile_85":3, - "percentile_90":4, - "percentile_95":6, - "percentile_97":6, - "percentile_99":9 - }, - "easypost_estimated_delivery_date":"2024-07-18" + "easypost_estimated_delivery_date": "2024-07-18" + }, + "service": "librarymail" + }, + { + "carrier": "USPS", + "easypost_time_in_transit_data": { + "days_in_transit": { + "percentile_50": 3, + "percentile_75": 3, + "percentile_85": 3, + "percentile_90": 4, + "percentile_95": 6, + "percentile_97": 6, + "percentile_99": 9 }, - "service":"mediamail" - }, - { - "carrier":"USPS", - "easypost_time_in_transit_data":{ - "days_in_transit":{ - "percentile_50":2, - "percentile_75":3, - "percentile_85":3, - "percentile_90":3, - "percentile_95":4, - "percentile_97":6, - "percentile_99":7 - }, - "easypost_estimated_delivery_date":"2024-07-18" + "easypost_estimated_delivery_date": "2024-07-18" + }, + "service": "mediamail" + }, + { + "carrier": "USPS", + "easypost_time_in_transit_data": { + "days_in_transit": { + "percentile_50": 2, + "percentile_75": 3, + "percentile_85": 3, + "percentile_90": 3, + "percentile_95": 4, + "percentile_97": 6, + "percentile_99": 7 }, - "service":"priority" - } + "easypost_estimated_delivery_date": "2024-07-18" + }, + "service": "priority" + } ], - "saturday_delivery":null, - "to_zip":"90277" + "saturday_delivery": null, + "to_zip": "90277" } diff --git a/official/docs/responses/smartrate/standalone-smartrate-retrieve-standalone-smartrate-deliver-on.json b/official/docs/responses/smartrate/standalone-smartrate-retrieve-standalone-smartrate-deliver-on.json index 1d4dca0e..414f03f8 100644 --- a/official/docs/responses/smartrate/standalone-smartrate-retrieve-standalone-smartrate-deliver-on.json +++ b/official/docs/responses/smartrate/standalone-smartrate-retrieve-standalone-smartrate-deliver-on.json @@ -1,99 +1,99 @@ { - "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" + "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 }, - "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" + "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 }, - "service":"groundadvantage" - }, - { - "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":6, - "percentile_99":9 - }, - "delivery_date_confidence":0.25, - "estimated_transit_days":3, - "ship_on_date":"2024-07-13" + "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": 4, + "percentile_90": 4, + "percentile_95": 5, + "percentile_97": 6, + "percentile_99": 9 }, - "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" + "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 }, - "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" + "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 }, - "service":"priority" - } + "delivery_date_confidence": 0.19, + "estimated_transit_days": 3, + "ship_on_date": "2024-07-13" + }, + "service": "priority" + } ], - "saturday_delivery":null, - "to_zip":"90277" + "saturday_delivery": null, + "to_zip": "90277" }