diff --git a/official/docs/csharp/current/orders/create.cs b/official/docs/csharp/current/orders/create.cs index c06f4497..9f4a0694 100644 --- a/official/docs/csharp/current/orders/create.cs +++ b/official/docs/csharp/current/orders/create.cs @@ -14,8 +14,6 @@ public static async Task Main() { var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); - Shipment shipment = await client.Shipment.Retrieve("shp_..."); - Parameters.Order.Create parameters = new() { ToAddress = new Parameters.Address.Create @@ -38,7 +36,24 @@ public static async Task Main() Country = "US", Zip = "94104" }, - Shipments = new List() { shipment } + Shipments = new List + { + new Parameters.Shipment.Create() + { + Parcel = new Parameters.Parcel.Create + { + Weight = 10.2 + } + }, + new Parameters.Shipment.Create() + { + Parcel = new Parameters.Parcel.Create + { + PredefinedPackage = "FedExBox", + Weight = 17.5 + } + } + }, }; Order order = await client.Order.Create(parameters); diff --git a/official/docs/golang/current/orders/create.go b/official/docs/golang/current/orders/create.go index 8e6dcf32..65cca485 100644 --- a/official/docs/golang/current/orders/create.go +++ b/official/docs/golang/current/orders/create.go @@ -11,14 +11,25 @@ func main() { toAddress, _ := client.GetAddress("adr_...") fromAddress, _ := client.GetAddress("adr_...") - shipment, _ := client.GetShipment("shp_...") + firstShipment := &easypost.Shipment{ + Parcel: &easypost.Parcel{ + Weight: 10.2, + }, + } + secondShipment := &easypost.Shipment{ + Parcel: &easypost.Parcel{ + PredefinedPackage: "FedExBox", + Weight: 17.5, + }, + } order, _ := client.CreateOrder( &easypost.Order{ ToAddress: toAddress, FromAddress: fromAddress, Shipments: []*easypost.Shipment{ - shipment, + firstShipment, + secondShipment, }, }, ) diff --git a/official/docs/golang/current/orders/one-call-buy.go b/official/docs/golang/current/orders/one-call-buy.go index c12224b5..b6d998b2 100644 --- a/official/docs/golang/current/orders/one-call-buy.go +++ b/official/docs/golang/current/orders/one-call-buy.go @@ -11,14 +11,11 @@ func main() { toAddress, _ := client.GetAddress("adr_...") fromAddress, _ := client.GetAddress("adr_...") - firstShipment := &easypost.Shipment{ Parcel: &easypost.Parcel{ - PredefinedPackage: "FedExBox", - Weight: 10.4, + Weight: 10.2, }, } - secondShipment := &easypost.Shipment{ Parcel: &easypost.Parcel{ PredefinedPackage: "FedExBox", diff --git a/official/docs/node/current/orders/one-call-buy.js b/official/docs/node/current/orders/one-call-buy.js index 4decc525..bf0b9639 100644 --- a/official/docs/node/current/orders/one-call-buy.js +++ b/official/docs/node/current/orders/one-call-buy.js @@ -11,7 +11,6 @@ const client = new EasyPostClient('EASYPOST_API_KEY'); shipments: [ { parcel: { - predefined_package: 'FedExBox', weight: 10.2, }, }, diff --git a/official/docs/python/current/orders/create.py b/official/docs/python/current/orders/create.py index 3514ffab..e04f537d 100644 --- a/official/docs/python/current/orders/create.py +++ b/official/docs/python/current/orders/create.py @@ -8,7 +8,6 @@ shipments=[ { "parcel": { - "predefined_package": "FedExBox", "weight": 10.2, } }, diff --git a/official/docs/python/current/orders/one-call-buy.py b/official/docs/python/current/orders/one-call-buy.py index 80b51bd3..3150583c 100644 --- a/official/docs/python/current/orders/one-call-buy.py +++ b/official/docs/python/current/orders/one-call-buy.py @@ -10,7 +10,6 @@ shipments=[ { "parcel": { - "predefined_package": "FedExBox", "weight": 10.2, } }, diff --git a/official/docs/responses/orders/orders-buy.json b/official/docs/responses/orders/orders-buy.json index 4d6fa1f7..3bf46880 100644 --- a/official/docs/responses/orders/orders-buy.json +++ b/official/docs/responses/orders/orders-buy.json @@ -9,14 +9,14 @@ } }, "messages": [], - "created_at": "2024-01-24T00:05:56Z", - "updated_at": "2024-01-24T00:05:56Z", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", "customs_info": null, "from_address": { - "id": "adr_58ec479fba4c11ee975e3cecef1b359e", + "id": "adr_fc21d34a29d011efb18e3cecef1b359e", "object": "Address", - "created_at": "2024-01-24T00:05:56+00:00", - "updated_at": "2024-01-24T00:05:56+00:00", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:03+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -35,10 +35,10 @@ "verifications": {} }, "to_address": { - "id": "adr_58ea8f17ba4c11eea6f0ac1f6bc539aa", + "id": "adr_fc2033fa29d011efb18c3cecef1b359e", "object": "Address", - "created_at": "2024-01-24T00:05:56+00:00", - "updated_at": "2024-01-24T00:05:57+00:00", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:04+00:00", "name": "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", @@ -72,10 +72,10 @@ } }, "buyer_address": { - "id": "adr_58ea8f17ba4c11eea6f0ac1f6bc539aa", + "id": "adr_fc2033fa29d011efb18c3cecef1b359e", "object": "Address", - "created_at": "2024-01-24T00:05:56+00:00", - "updated_at": "2024-01-24T00:05:57+00:00", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:04+00:00", "name": "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", @@ -109,10 +109,10 @@ } }, "return_address": { - "id": "adr_58ec479fba4c11ee975e3cecef1b359e", + "id": "adr_fc21d34a29d011efb18e3cecef1b359e", "object": "Address", - "created_at": "2024-01-24T00:05:56+00:00", - "updated_at": "2024-01-24T00:05:56+00:00", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:03+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -132,7 +132,7 @@ }, "shipments": [ { - "created_at": "2024-01-24T00:05:56Z", + "created_at": "2024-06-13T22:05:03Z", "is_return": false, "messages": [], "mode": "test", @@ -145,17 +145,17 @@ }, "reference": null, "status": "unknown", - "tracking_code": "9400100207552011812556", - "updated_at": "2024-01-24T00:05:58Z", + "tracking_code": "9400100110368051717318", + "updated_at": "2024-06-13T22:05:04Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": { - "id": "adr_58ec479fba4c11ee975e3cecef1b359e", + "id": "adr_fc21d34a29d011efb18e3cecef1b359e", "object": "Address", - "created_at": "2024-01-24T00:05:56+00:00", - "updated_at": "2024-01-24T00:05:56+00:00", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:03+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -174,12 +174,12 @@ "verifications": {} }, "insurance": null, - "order_id": "order_12032df7a2c440c08adcf90653c22b9b", + "order_id": "order_508547ee50c84b7dbf3b18a8c730e319", "parcel": { - "id": "prcl_2e3d35cf1f4645a8bb23095b8cd4382e", + "id": "prcl_3d294a298e334648b747553a3d35e8cd", "object": "Parcel", - "created_at": "2024-01-24T00:05:56Z", - "updated_at": "2024-01-24T00:05:56Z", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", "length": null, "width": null, "height": null, @@ -189,17 +189,17 @@ }, "postage_label": { "object": "PostageLabel", - "id": "pl_717a685a1bb7490f908559900668f9d7", - "created_at": "2024-01-24T00:05:57Z", - "updated_at": "2024-01-24T00:05:57Z", + "id": "pl_d9a1c49dc9564be79049f67548b67db1", + "created_at": "2024-06-13T22:05:04Z", + "updated_at": "2024-06-13T22:05:04Z", "date_advance": 0, "integrated_form": "none", - "label_date": "2024-01-24T00:05:57Z", + "label_date": "2024-06-13T22:05:04Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": "image/png", - "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240124/e82f4c1546988644378a9a63fb5bb1507e.png", + "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240613/e87dcc360df9e541cca6a31799a9a51a7c.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, @@ -207,32 +207,10 @@ }, "rates": [ { - "id": "rate_a15180650fa747c9b39df69fed0837cc", + "id": "rate_05a312e263a3484997ef78113b40ca30", "object": "Rate", - "created_at": "2024-01-24T00:05:56Z", - "updated_at": "2024-01-24T00:05: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": null, - "delivery_date": null, - "delivery_date_guaranteed": false, - "est_delivery_days": null, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", - "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" - }, - { - "id": "rate_f80af12685ed43dd8449574aaa79d320", - "object": "Rate", - "created_at": "2024-01-24T00:05:56Z", - "updated_at": "2024-01-24T00:05:56Z", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", "mode": "test", "service": "Priority", "carrier": "USPS", @@ -247,14 +225,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_1a9a747ade654bae93f2b81003af08dc", + "id": "rate_9be0bf0c869945d2b18a393a7cf5bc42", "object": "Rate", - "created_at": "2024-01-24T00:05:56Z", - "updated_at": "2024-01-24T00:05:56Z", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", @@ -269,14 +247,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_e5a4f53119594475935dc6c89990e9f9", + "id": "rate_5d3e1c77fa264020a6a437dc4d9b5855", "object": "Rate", - "created_at": "2024-01-24T00:05:56Z", - "updated_at": "2024-01-24T00:05:56Z", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", "mode": "test", "service": "First", "carrier": "USPS", @@ -291,14 +269,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_0a08acd20fe5497191b4346db709464b", + "id": "rate_49810a6defee4488a186fbdae9b0b21c", "object": "Rate", - "created_at": "2024-01-24T00:05:56Z", - "updated_at": "2024-01-24T00:05:56Z", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", "mode": "test", "service": "ParcelSelect", "carrier": "USPS", @@ -313,17 +291,39 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_3489ae08f18549d18b980f8960786a28", + "object": "Rate", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05: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_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" } ], "refund_status": null, "scan_form": null, "selected_rate": { - "id": "rate_e5a4f53119594475935dc6c89990e9f9", + "id": "rate_5d3e1c77fa264020a6a437dc4d9b5855", "object": "Rate", - "created_at": "2024-01-24T00:05:57Z", - "updated_at": "2024-01-24T00:05:57Z", + "created_at": "2024-06-13T22:05:04Z", + "updated_at": "2024-06-13T22:05:04Z", "mode": "test", "service": "First", "carrier": "USPS", @@ -338,33 +338,33 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, "tracker": { - "id": "trk_2165a610b2ca4c0da08583c70a0efa27", + "id": "trk_873514a9423145efbff4d02a1359c430", "object": "Tracker", "mode": "test", - "tracking_code": "9400100207552011812556", + "tracking_code": "9400100110368051717318", "status": "unknown", "status_detail": "unknown", - "created_at": "2024-01-24T00:05:58Z", - "updated_at": "2024-01-24T00:05:58Z", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", "signed_by": null, "weight": null, "est_delivery_date": null, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, - "public_url": "https://track.easypost.com/djE6dHJrXzIxNjVhNjEwYjJjYTRjMGRhMDg1ODNjNzBhMGVmYTI3" + "public_url": "https://track.easypost.com/djE6dHJrXzg3MzUxNGE5NDIzMTQ1ZWZiZmY0ZDAyYTEzNTljNDMw" }, "to_address": { - "id": "adr_58ea8f17ba4c11eea6f0ac1f6bc539aa", + "id": "adr_fc2033fa29d011efb18c3cecef1b359e", "object": "Address", - "created_at": "2024-01-24T00:05:56+00:00", - "updated_at": "2024-01-24T00:05:57+00:00", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:04+00:00", "name": "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", @@ -399,10 +399,10 @@ }, "usps_zone": 4, "return_address": { - "id": "adr_58ec479fba4c11ee975e3cecef1b359e", + "id": "adr_fc21d34a29d011efb18e3cecef1b359e", "object": "Address", - "created_at": "2024-01-24T00:05:56+00:00", - "updated_at": "2024-01-24T00:05:56+00:00", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:03+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -421,10 +421,10 @@ "verifications": {} }, "buyer_address": { - "id": "adr_58ea8f17ba4c11eea6f0ac1f6bc539aa", + "id": "adr_fc2033fa29d011efb18c3cecef1b359e", "object": "Address", - "created_at": "2024-01-24T00:05:56+00:00", - "updated_at": "2024-01-24T00:05:57+00:00", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:04+00:00", "name": "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", @@ -474,122 +474,468 @@ "refunded": false } ], - "id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "id": "shp_494bf30aaa5e40fea8b34647cc8d451c", + "object": "Shipment" + }, + { + "created_at": "2024-06-13T22:05:03Z", + "is_return": false, + "messages": [], + "mode": "test", + "options": { + "currency": "USD", + "payment": { + "type": "SENDER" + }, + "date_advance": 0 + }, + "reference": null, + "status": "unknown", + "tracking_code": "9434600110368051717327", + "updated_at": "2024-06-13T22:05:04Z", + "batch_id": null, + "batch_status": null, + "batch_message": null, + "customs_info": null, + "from_address": { + "id": "adr_fc21d34a29d011efb18e3cecef1b359e", + "object": "Address", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:03+00:00", + "name": "EasyPost", + "company": null, + "street1": "417 Montgomery Street", + "street2": "5th Floor", + "city": "San Francisco", + "state": "CA", + "zip": "94104", + "country": "US", + "phone": "4153334445", + "email": "support@easypost.com", + "mode": "test", + "carrier_facility": null, + "residential": null, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": {} + }, + "insurance": null, + "order_id": "order_508547ee50c84b7dbf3b18a8c730e319", + "parcel": { + "id": "prcl_fd5826adad704aa6bed4a374c2b3726c", + "object": "Parcel", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", + "length": null, + "width": null, + "height": null, + "predefined_package": null, + "weight": 17.5, + "mode": "test" + }, + "postage_label": { + "object": "PostageLabel", + "id": "pl_feb0e9c071fb47989acaead04158cdf1", + "created_at": "2024-06-13T22:05:04Z", + "updated_at": "2024-06-13T22:05:04Z", + "date_advance": 0, + "integrated_form": "none", + "label_date": "2024-06-13T22:05:04Z", + "label_resolution": 300, + "label_size": "4x6", + "label_type": "default", + "label_file_type": "image/png", + "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240613/e858834ae57691479f9f0e4ebd0ae943b6.png", + "label_pdf_url": null, + "label_zpl_url": null, + "label_epl2_url": null, + "label_file": null + }, + "rates": [ + { + "id": "rate_0c3e55c07ccd47169b24a6e81cbddc2f", + "object": "Rate", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", + "mode": "test", + "service": "GroundAdvantage", + "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_6773f7d3d79f462999e8b32f6bb478ea", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_0b948416fe4a4d069cc520494c7e1403", + "object": "Rate", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", + "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_6773f7d3d79f462999e8b32f6bb478ea", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_cc13e8bd6c88434baa68c8edb288ab63", + "object": "Rate", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", + "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_6773f7d3d79f462999e8b32f6bb478ea", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_597402f87a2a484382414d0d55c923eb", + "object": "Rate", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", + "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_6773f7d3d79f462999e8b32f6bb478ea", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_c3a7609bb25d4c9ebd3967e1c03f0f1d", + "object": "Rate", + "created_at": "2024-06-13T22:05:03Z", + "updated_at": "2024-06-13T22:05:03Z", + "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_6773f7d3d79f462999e8b32f6bb478ea", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + } + ], + "refund_status": null, + "scan_form": null, + "selected_rate": { + "id": "rate_0b948416fe4a4d069cc520494c7e1403", + "object": "Rate", + "created_at": "2024-06-13T22:05:04Z", + "updated_at": "2024-06-13T22:05:04Z", + "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_6773f7d3d79f462999e8b32f6bb478ea", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + "tracker": { + "id": "trk_efe0f8df84ae4ad89202ae51e70772b9", + "object": "Tracker", + "mode": "test", + "tracking_code": "9434600110368051717327", + "status": "unknown", + "status_detail": "unknown", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", + "signed_by": null, + "weight": null, + "est_delivery_date": null, + "shipment_id": "shp_6773f7d3d79f462999e8b32f6bb478ea", + "carrier": "USPS", + "tracking_details": [], + "fees": [], + "carrier_detail": null, + "public_url": "https://track.easypost.com/djE6dHJrX2VmZTBmOGRmODRhZTRhZDg5MjAyYWU1MWU3MDc3MmI5" + }, + "to_address": { + "id": "adr_fc2033fa29d011efb18c3cecef1b359e", + "object": "Address", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:04+00:00", + "name": "DR. STEVE BRULE", + "company": null, + "street1": "179 N HARBOR DR", + "street2": "", + "city": "REDONDO BEACH", + "state": "CA", + "zip": "90277-2506", + "country": "US", + "phone": "8573875756", + "email": "DR_STEVE_BRULE@GMAIL.COM", + "mode": "test", + "carrier_facility": null, + "residential": false, + "federal_tax_id": null, + "state_tax_id": 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_fc21d34a29d011efb18e3cecef1b359e", + "object": "Address", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:03+00:00", + "name": "EasyPost", + "company": null, + "street1": "417 Montgomery Street", + "street2": "5th Floor", + "city": "San Francisco", + "state": "CA", + "zip": "94104", + "country": "US", + "phone": "4153334445", + "email": "support@easypost.com", + "mode": "test", + "carrier_facility": null, + "residential": null, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": {} + }, + "buyer_address": { + "id": "adr_fc2033fa29d011efb18c3cecef1b359e", + "object": "Address", + "created_at": "2024-06-13T22:05:03+00:00", + "updated_at": "2024-06-13T22:05:04+00:00", + "name": "DR. STEVE BRULE", + "company": null, + "street1": "179 N HARBOR DR", + "street2": "", + "city": "REDONDO BEACH", + "state": "CA", + "zip": "90277-2506", + "country": "US", + "phone": "8573875756", + "email": "DR_STEVE_BRULE@GMAIL.COM", + "mode": "test", + "carrier_facility": null, + "residential": false, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": { + "zip4": { + "success": true, + "errors": [], + "details": null + }, + "delivery": { + "success": true, + "errors": [], + "details": { + "latitude": 33.8436, + "longitude": -118.39177, + "time_zone": "America/Los_Angeles" + } + } + } + }, + "forms": [], + "fees": [ + { + "object": "Fee", + "type": "LabelFee", + "amount": "0.00000", + "charged": true, + "refunded": false + }, + { + "object": "Fee", + "type": "PostageFee", + "amount": "6.26000", + "charged": true, + "refunded": false + } + ], + "id": "shp_6773f7d3d79f462999e8b32f6bb478ea", "object": "Shipment" } ], "rates": [ { - "id": "rate_a15180650fa747c9b39df69fed0837cc", + "id": "rate_05a312e263a3484997ef78113b40ca30", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", + "service": "Priority", "carrier": "USPS", - "rate": "33.10", + "rate": "13.79", "currency": "USD", - "retail_rate": "37.90", + "retail_rate": "22.30", "retail_currency": "USD", - "list_rate": "33.10", + "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": null, + "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": null, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "est_delivery_days": 2, + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_f80af12685ed43dd8449574aaa79d320", + "id": "rate_9be0bf0c869945d2b18a393a7cf5bc42", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", + "service": "GroundAdvantage", "carrier": "USPS", - "rate": "6.88", + "rate": "11.33", "currency": "USD", - "retail_rate": "9.80", + "retail_rate": "17.50", "retail_currency": "USD", - "list_rate": "8.25", + "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 2, + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "est_delivery_days": 3, + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_1a9a747ade654bae93f2b81003af08dc", + "id": "rate_5d3e1c77fa264020a6a437dc4d9b5855", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", + "service": "First", "carrier": "USPS", - "rate": "5.07", + "rate": "11.33", "currency": "USD", - "retail_rate": "6.70", + "retail_rate": "17.50", "retail_currency": "USD", - "list_rate": "5.07", + "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_3767a779a1b442d9bbf80a81c58499d8", + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_e5a4f53119594475935dc6c89990e9f9", + "id": "rate_49810a6defee4488a186fbdae9b0b21c", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "First", + "service": "ParcelSelect", "carrier": "USPS", - "rate": "5.07", + "rate": "11.33", "currency": "USD", - "retail_rate": "6.70", + "retail_rate": "17.50", "retail_currency": "USD", - "list_rate": "5.07", + "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_3767a779a1b442d9bbf80a81c58499d8", + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_0a08acd20fe5497191b4346db709464b", + "id": "rate_3489ae08f18549d18b980f8960786a28", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "ParcelSelect", + "service": "Express", "carrier": "USPS", - "rate": "5.07", + "rate": "70.30", "currency": "USD", - "retail_rate": "6.70", + "retail_rate": "80.70", "retail_currency": "USD", - "list_rate": "5.07", + "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, - "shipment_id": "shp_3767a779a1b442d9bbf80a81c58499d8", + "est_delivery_days": 1, + "shipment_id": "shp_494bf30aaa5e40fea8b34647cc8d451c", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" } ], - "id": "order_12032df7a2c440c08adcf90653c22b9b", + "id": "order_508547ee50c84b7dbf3b18a8c730e319", "object": "Order" } diff --git a/official/docs/responses/orders/orders-create.json b/official/docs/responses/orders/orders-create.json index 6e035579..b078d8c2 100644 --- a/official/docs/responses/orders/orders-create.json +++ b/official/docs/responses/orders/orders-create.json @@ -9,14 +9,14 @@ } }, "messages": [], - "created_at": "2024-01-24T00:05:55Z", - "updated_at": "2024-01-24T00:05:55Z", + "created_at": "2024-06-13T22:05:01Z", + "updated_at": "2024-06-13T22:05:01Z", "customs_info": null, "from_address": { - "id": "adr_57ea4540ba4c11ee8d58ac1f6bc539ae", + "id": "adr_fb52d30b29d011ef870eac1f6bc539ae", "object": "Address", - "created_at": "2024-01-24T00:05:55+00:00", - "updated_at": "2024-01-24T00:05:55+00:00", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -35,10 +35,10 @@ "verifications": {} }, "to_address": { - "id": "adr_57e87debba4c11eebad4ac1f6bc53342", + "id": "adr_fb50d68d29d011efa0deac1f6bc53342", "object": "Address", - "created_at": "2024-01-24T00:05:55+00:00", - "updated_at": "2024-01-24T00:05:55+00:00", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", "name": "Dr. Steve Brule", "company": null, "street1": "179 N Harbor Dr", @@ -57,10 +57,10 @@ "verifications": {} }, "buyer_address": { - "id": "adr_57e87debba4c11eebad4ac1f6bc53342", + "id": "adr_fb50d68d29d011efa0deac1f6bc53342", "object": "Address", - "created_at": "2024-01-24T00:05:55+00:00", - "updated_at": "2024-01-24T00:05:55+00:00", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", "name": "Dr. Steve Brule", "company": null, "street1": "179 N Harbor Dr", @@ -79,10 +79,10 @@ "verifications": {} }, "return_address": { - "id": "adr_57ea4540ba4c11ee8d58ac1f6bc539ae", + "id": "adr_fb52d30b29d011ef870eac1f6bc539ae", "object": "Address", - "created_at": "2024-01-24T00:05:55+00:00", - "updated_at": "2024-01-24T00:05:55+00:00", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -102,7 +102,7 @@ }, "shipments": [ { - "created_at": "2024-01-24T00:05:55Z", + "created_at": "2024-06-13T22:05:01Z", "is_return": false, "messages": [], "mode": "test", @@ -116,16 +116,16 @@ "reference": null, "status": "unknown", "tracking_code": null, - "updated_at": "2024-01-24T00:05:55Z", + "updated_at": "2024-06-13T22:05:01Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": { - "id": "adr_57ea4540ba4c11ee8d58ac1f6bc539ae", + "id": "adr_fb52d30b29d011ef870eac1f6bc539ae", "object": "Address", - "created_at": "2024-01-24T00:05:55+00:00", - "updated_at": "2024-01-24T00:05:55+00:00", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -144,12 +144,12 @@ "verifications": {} }, "insurance": null, - "order_id": "order_825e4008bd1448c5acf82bb90dc461ca", + "order_id": "order_8c7645642ad94ed49e2c8da41b9471d6", "parcel": { - "id": "prcl_ca08509bfc8347748c8acb479ec7c0dd", + "id": "prcl_9464c815c817405c8f58ab75f6dd255d", "object": "Parcel", - "created_at": "2024-01-24T00:05:55Z", - "updated_at": "2024-01-24T00:05:55Z", + "created_at": "2024-06-13T22:05:01Z", + "updated_at": "2024-06-13T22:05:01Z", "length": null, "width": null, "height": null, @@ -160,10 +160,10 @@ "postage_label": null, "rates": [ { - "id": "rate_ce70a3f843e74306a5271286a315c8d6", + "id": "rate_d10494134eae4b92baf6d49c95f16d02", "object": "Rate", - "created_at": "2024-01-24T00:05:55Z", - "updated_at": "2024-01-24T00:05:55Z", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", "mode": "test", "service": "Express", "carrier": "USPS", @@ -174,18 +174,18 @@ "list_rate": "33.10", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": null, + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": null, - "shipment_id": "shp_f4ca387fab464f7dac233a355801b61c", + "est_delivery_days": 1, + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_bd2b1a604fdf497b950763818474b99c", + "id": "rate_58671c57f0b14cceaf59b938317e4837", "object": "Rate", - "created_at": "2024-01-24T00:05:55Z", - "updated_at": "2024-01-24T00:05:55Z", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", "mode": "test", "service": "Priority", "carrier": "USPS", @@ -200,14 +200,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, - "shipment_id": "shp_f4ca387fab464f7dac233a355801b61c", + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_cceeab9b94c74cd98b2bea0a53f092bb", + "id": "rate_c43adfae42c34f869019280d51e02105", "object": "Rate", - "created_at": "2024-01-24T00:05:55Z", - "updated_at": "2024-01-24T00:05:55Z", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", @@ -222,14 +222,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_f4ca387fab464f7dac233a355801b61c", + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_98a7f1f78555474f9d12fcc38fc4b640", + "id": "rate_015d1d71e3b047999de4da942e4e0cab", "object": "Rate", - "created_at": "2024-01-24T00:05:55Z", - "updated_at": "2024-01-24T00:05:55Z", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", "mode": "test", "service": "First", "carrier": "USPS", @@ -244,14 +244,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_f4ca387fab464f7dac233a355801b61c", + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_674286cd966845ae8a830c4b554c00a0", + "id": "rate_7a1919778d25413ba912c8b2751a3db3", "object": "Rate", - "created_at": "2024-01-24T00:05:55Z", - "updated_at": "2024-01-24T00:05:55Z", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", "mode": "test", "service": "ParcelSelect", "carrier": "USPS", @@ -266,7 +266,7 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_f4ca387fab464f7dac233a355801b61c", + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" } ], @@ -275,10 +275,10 @@ "selected_rate": null, "tracker": null, "to_address": { - "id": "adr_57e87debba4c11eebad4ac1f6bc53342", + "id": "adr_fb50d68d29d011efa0deac1f6bc53342", "object": "Address", - "created_at": "2024-01-24T00:05:55+00:00", - "updated_at": "2024-01-24T00:05:55+00:00", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", "name": "Dr. Steve Brule", "company": null, "street1": "179 N Harbor Dr", @@ -298,10 +298,10 @@ }, "usps_zone": 4, "return_address": { - "id": "adr_57ea4540ba4c11ee8d58ac1f6bc539ae", + "id": "adr_fb52d30b29d011ef870eac1f6bc539ae", "object": "Address", - "created_at": "2024-01-24T00:05:55+00:00", - "updated_at": "2024-01-24T00:05:55+00:00", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -320,10 +320,10 @@ "verifications": {} }, "buyer_address": { - "id": "adr_57e87debba4c11eebad4ac1f6bc53342", + "id": "adr_fb50d68d29d011efa0deac1f6bc53342", "object": "Address", - "created_at": "2024-01-24T00:05:55+00:00", - "updated_at": "2024-01-24T00:05:55+00:00", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", "name": "Dr. Steve Brule", "company": null, "street1": "179 N Harbor Dr", @@ -343,122 +343,367 @@ }, "forms": [], "fees": [], - "id": "shp_f4ca387fab464f7dac233a355801b61c", + "id": "shp_ee2e9274571f41f289c1d93c247085f5", + "object": "Shipment" + }, + { + "created_at": "2024-06-13T22:05:01Z", + "is_return": false, + "messages": [], + "mode": "test", + "options": { + "currency": "USD", + "payment": { + "type": "SENDER" + }, + "date_advance": 0 + }, + "reference": null, + "status": "unknown", + "tracking_code": null, + "updated_at": "2024-06-13T22:05:01Z", + "batch_id": null, + "batch_status": null, + "batch_message": null, + "customs_info": null, + "from_address": { + "id": "adr_fb52d30b29d011ef870eac1f6bc539ae", + "object": "Address", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", + "name": "EasyPost", + "company": null, + "street1": "417 Montgomery Street", + "street2": "5th Floor", + "city": "San Francisco", + "state": "CA", + "zip": "94104", + "country": "US", + "phone": "4153334445", + "email": "support@easypost.com", + "mode": "test", + "carrier_facility": null, + "residential": null, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": {} + }, + "insurance": null, + "order_id": "order_8c7645642ad94ed49e2c8da41b9471d6", + "parcel": { + "id": "prcl_e03ffd6401124998bf1d5bd2aecee96d", + "object": "Parcel", + "created_at": "2024-06-13T22:05:01Z", + "updated_at": "2024-06-13T22:05:01Z", + "length": null, + "width": null, + "height": null, + "predefined_package": null, + "weight": 17.5, + "mode": "test" + }, + "postage_label": null, + "rates": [ + { + "id": "rate_09815abd6f35425cb7f7dd9162945001", + "object": "Rate", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", + "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_c5d4f2d1cf2640df89c232a0efb537eb", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_d9c71ce5f1ee4833aa34cee01b2f5ef9", + "object": "Rate", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", + "mode": "test", + "service": "GroundAdvantage", + "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_c5d4f2d1cf2640df89c232a0efb537eb", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_901f519033954d6d872cda4bdac13636", + "object": "Rate", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", + "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_c5d4f2d1cf2640df89c232a0efb537eb", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_9fae47cf15494ec1b6123a05b87fa3cb", + "object": "Rate", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", + "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_c5d4f2d1cf2640df89c232a0efb537eb", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_ec27502ff296407dbafb6dff6af7248d", + "object": "Rate", + "created_at": "2024-06-13T22:05:02Z", + "updated_at": "2024-06-13T22:05:02Z", + "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_c5d4f2d1cf2640df89c232a0efb537eb", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + } + ], + "refund_status": null, + "scan_form": null, + "selected_rate": null, + "tracker": null, + "to_address": { + "id": "adr_fb50d68d29d011efa0deac1f6bc53342", + "object": "Address", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", + "name": "Dr. Steve Brule", + "company": null, + "street1": "179 N Harbor Dr", + "street2": null, + "city": "Redondo Beach", + "state": "CA", + "zip": "90277", + "country": "US", + "phone": "8573875756", + "email": "dr_steve_brule@gmail.com", + "mode": "test", + "carrier_facility": null, + "residential": null, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": {} + }, + "usps_zone": 4, + "return_address": { + "id": "adr_fb52d30b29d011ef870eac1f6bc539ae", + "object": "Address", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", + "name": "EasyPost", + "company": null, + "street1": "417 Montgomery Street", + "street2": "5th Floor", + "city": "San Francisco", + "state": "CA", + "zip": "94104", + "country": "US", + "phone": "4153334445", + "email": "support@easypost.com", + "mode": "test", + "carrier_facility": null, + "residential": null, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": {} + }, + "buyer_address": { + "id": "adr_fb50d68d29d011efa0deac1f6bc53342", + "object": "Address", + "created_at": "2024-06-13T22:05:01+00:00", + "updated_at": "2024-06-13T22:05:01+00:00", + "name": "Dr. Steve Brule", + "company": null, + "street1": "179 N Harbor Dr", + "street2": null, + "city": "Redondo Beach", + "state": "CA", + "zip": "90277", + "country": "US", + "phone": "8573875756", + "email": "dr_steve_brule@gmail.com", + "mode": "test", + "carrier_facility": null, + "residential": null, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": {} + }, + "forms": [], + "fees": [], + "id": "shp_c5d4f2d1cf2640df89c232a0efb537eb", "object": "Shipment" } ], "rates": [ { - "id": "rate_ce70a3f843e74306a5271286a315c8d6", + "id": "rate_d10494134eae4b92baf6d49c95f16d02", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": "USPS", - "rate": "33.10", + "rate": "70.30", "currency": "USD", - "retail_rate": "37.90", + "retail_rate": "80.70", "retail_currency": "USD", - "list_rate": "33.10", + "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": null, + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": null, - "shipment_id": "shp_f4ca387fab464f7dac233a355801b61c", + "est_delivery_days": 1, + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_bd2b1a604fdf497b950763818474b99c", + "id": "rate_58671c57f0b14cceaf59b938317e4837", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": "USPS", - "rate": "6.88", + "rate": "13.79", "currency": "USD", - "retail_rate": "9.80", + "retail_rate": "22.30", "retail_currency": "USD", - "list_rate": "8.25", + "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_f4ca387fab464f7dac233a355801b61c", + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_cceeab9b94c74cd98b2bea0a53f092bb", + "id": "rate_c43adfae42c34f869019280d51e02105", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", - "rate": "5.07", + "rate": "11.33", "currency": "USD", - "retail_rate": "6.70", + "retail_rate": "17.50", "retail_currency": "USD", - "list_rate": "5.07", + "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_f4ca387fab464f7dac233a355801b61c", + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_98a7f1f78555474f9d12fcc38fc4b640", + "id": "rate_015d1d71e3b047999de4da942e4e0cab", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "5.07", + "rate": "11.33", "currency": "USD", - "retail_rate": "6.70", + "retail_rate": "17.50", "retail_currency": "USD", - "list_rate": "5.07", + "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_f4ca387fab464f7dac233a355801b61c", + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_674286cd966845ae8a830c4b554c00a0", + "id": "rate_7a1919778d25413ba912c8b2751a3db3", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": "USPS", - "rate": "5.07", + "rate": "11.33", "currency": "USD", - "retail_rate": "6.70", + "retail_rate": "17.50", "retail_currency": "USD", - "list_rate": "5.07", + "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_f4ca387fab464f7dac233a355801b61c", + "shipment_id": "shp_ee2e9274571f41f289c1d93c247085f5", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" } ], - "id": "order_825e4008bd1448c5acf82bb90dc461ca", + "id": "order_8c7645642ad94ed49e2c8da41b9471d6", "object": "Order" } diff --git a/official/docs/responses/orders/orders-one-call-buy.json b/official/docs/responses/orders/orders-one-call-buy.json index bebeda5d..28699b0f 100644 --- a/official/docs/responses/orders/orders-one-call-buy.json +++ b/official/docs/responses/orders/orders-one-call-buy.json @@ -9,14 +9,14 @@ "type": "SENDER" } }, - "created_at": "2024-01-24T00:05:58Z", - "updated_at": "2024-01-24T00:05:58Z", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", "customs_info": null, "from_address": { - "id": "adr_5a0f5af8ba4c11eebb69ac1f6bc53342", + "id": "adr_fd711ae529d011ef87e1ac1f6bc539ae", "object": "Address", - "created_at": "2024-01-24T00:05:58+00:00", - "updated_at": "2024-01-24T00:05:58+00:00", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:05+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -35,10 +35,10 @@ "verifications": {} }, "to_address": { - "id": "adr_5a0dc9a4ba4c11ee8df2ac1f6bc539ae", + "id": "adr_fd6f173729d011ef97e1ac1f6bc539aa", "object": "Address", - "created_at": "2024-01-24T00:05:58+00:00", - "updated_at": "2024-01-24T00:05:58+00:00", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:06+00:00", "name": "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", @@ -72,10 +72,10 @@ } }, "buyer_address": { - "id": "adr_5a0dc9a4ba4c11ee8df2ac1f6bc539ae", + "id": "adr_fd6f173729d011ef97e1ac1f6bc539aa", "object": "Address", - "created_at": "2024-01-24T00:05:58+00:00", - "updated_at": "2024-01-24T00:05:58+00:00", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:06+00:00", "name": "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", @@ -109,10 +109,10 @@ } }, "return_address": { - "id": "adr_5a0f5af8ba4c11eebb69ac1f6bc53342", + "id": "adr_fd711ae529d011ef87e1ac1f6bc539ae", "object": "Address", - "created_at": "2024-01-24T00:05:58+00:00", - "updated_at": "2024-01-24T00:05:58+00:00", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:05+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -132,7 +132,7 @@ }, "shipments": [ { - "created_at": "2024-01-24T00:05:58Z", + "created_at": "2024-06-13T22:05:05Z", "is_return": false, "messages": [], "mode": "test", @@ -145,17 +145,17 @@ }, "reference": null, "status": "unknown", - "tracking_code": "9400100207552011812563", - "updated_at": "2024-01-24T00:05:59Z", + "tracking_code": "9400100110368051717332", + "updated_at": "2024-06-13T22:05:06Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": { - "id": "adr_5a0f5af8ba4c11eebb69ac1f6bc53342", + "id": "adr_fd711ae529d011ef87e1ac1f6bc539ae", "object": "Address", - "created_at": "2024-01-24T00:05:58+00:00", - "updated_at": "2024-01-24T00:05:58+00:00", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:05+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -174,12 +174,12 @@ "verifications": {} }, "insurance": null, - "order_id": "order_700c1e0203b24cf192d38ba62aacdb86", + "order_id": "order_cee9d9ffe81c48e78df4a3ca7fff475a", "parcel": { - "id": "prcl_d12175ef61644588b383d5debb91bf96", + "id": "prcl_6a92a7c56281409bbcb2c62ac8896f8c", "object": "Parcel", - "created_at": "2024-01-24T00:05:58Z", - "updated_at": "2024-01-24T00:05:58Z", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", "length": null, "width": null, "height": null, @@ -189,17 +189,17 @@ }, "postage_label": { "object": "PostageLabel", - "id": "pl_a9d0d35f3cc24095a458b14fef6cbd96", - "created_at": "2024-01-24T00:05:59Z", - "updated_at": "2024-01-24T00:05:59Z", + "id": "pl_9d4b308e71c4440c83218e5b3355cc7d", + "created_at": "2024-06-13T22:05:06Z", + "updated_at": "2024-06-13T22:05:06Z", "date_advance": 0, "integrated_form": "none", - "label_date": "2024-01-24T00:05:59Z", + "label_date": "2024-06-13T22:05:06Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": "image/png", - "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240124/e8050a603da7fe4bc5bc98247ca27a2dde.png", + "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240613/e8b6e7a94e086e46249b57f2c83267460d.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, @@ -207,10 +207,10 @@ }, "rates": [ { - "id": "rate_985c0d7c85f545ecb6367f377df13453", + "id": "rate_b137a81f4a954f518ad5ca3da6c6277f", "object": "Rate", - "created_at": "2024-01-24T00:05:58Z", - "updated_at": "2024-01-24T00:05:58Z", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", "mode": "test", "service": "Priority", "carrier": "USPS", @@ -225,14 +225,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, - "shipment_id": "shp_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_01c4b156f83247d9a8087b60ba19a4e0", + "id": "rate_f9de392f3c4a4bb2b4bef51e2b7a565d", "object": "Rate", - "created_at": "2024-01-24T00:05:58Z", - "updated_at": "2024-01-24T00:05:58Z", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", @@ -247,14 +247,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_b499467fd724497caf04475555082734", + "id": "rate_ed64f8b52c6e488cbd6f2bb5dd555852", "object": "Rate", - "created_at": "2024-01-24T00:05:58Z", - "updated_at": "2024-01-24T00:05:58Z", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", "mode": "test", "service": "First", "carrier": "USPS", @@ -269,14 +269,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_b35f9780e45d463a9cf672f04fafa3c3", + "id": "rate_c0a8e97ac71d40109f91aadc18af3521", "object": "Rate", - "created_at": "2024-01-24T00:05:58Z", - "updated_at": "2024-01-24T00:05:58Z", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", "mode": "test", "service": "ParcelSelect", "carrier": "USPS", @@ -291,14 +291,14 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_b1bac17f8cc6444f8d192ed09965f667", + "id": "rate_a25e227ebdfc4fa2adb9a2e2a5a2460d", "object": "Rate", - "created_at": "2024-01-24T00:05:58Z", - "updated_at": "2024-01-24T00:05:58Z", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", "mode": "test", "service": "Express", "carrier": "USPS", @@ -309,21 +309,21 @@ "list_rate": "33.10", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": null, + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": null, - "shipment_id": "shp_ca14f75e17154537a4cd8b80d31e0825", + "est_delivery_days": 1, + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" } ], "refund_status": null, "scan_form": null, "selected_rate": { - "id": "rate_b499467fd724497caf04475555082734", + "id": "rate_ed64f8b52c6e488cbd6f2bb5dd555852", "object": "Rate", - "created_at": "2024-01-24T00:05:59Z", - "updated_at": "2024-01-24T00:05:59Z", + "created_at": "2024-06-13T22:05:06Z", + "updated_at": "2024-06-13T22:05:06Z", "mode": "test", "service": "First", "carrier": "USPS", @@ -338,33 +338,33 @@ "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, - "shipment_id": "shp_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, "tracker": { - "id": "trk_02a7da80556f4742b9d39a854f135661", + "id": "trk_ca73cd7c017f437d94450215ef35c6a2", "object": "Tracker", "mode": "test", - "tracking_code": "9400100207552011812563", + "tracking_code": "9400100110368051717332", "status": "unknown", "status_detail": "unknown", - "created_at": "2024-01-24T00:05:59Z", - "updated_at": "2024-01-24T00:05:59Z", + "created_at": "2024-06-13T22:05:07Z", + "updated_at": "2024-06-13T22:05:07Z", "signed_by": null, "weight": null, "est_delivery_date": null, - "shipment_id": "shp_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, - "public_url": "https://track.easypost.com/djE6dHJrXzAyYTdkYTgwNTU2ZjQ3NDJiOWQzOWE4NTRmMTM1NjYx" + "public_url": "https://track.easypost.com/djE6dHJrX2NhNzNjZDdjMDE3ZjQzN2Q5NDQ1MDIxNWVmMzVjNmEy" }, "to_address": { - "id": "adr_5a0dc9a4ba4c11ee8df2ac1f6bc539ae", + "id": "adr_fd6f173729d011ef97e1ac1f6bc539aa", "object": "Address", - "created_at": "2024-01-24T00:05:58+00:00", - "updated_at": "2024-01-24T00:05:58+00:00", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:06+00:00", "name": "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", @@ -399,10 +399,10 @@ }, "usps_zone": 4, "return_address": { - "id": "adr_5a0f5af8ba4c11eebb69ac1f6bc53342", + "id": "adr_fd711ae529d011ef87e1ac1f6bc539ae", "object": "Address", - "created_at": "2024-01-24T00:05:58+00:00", - "updated_at": "2024-01-24T00:05:58+00:00", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:05+00:00", "name": "EasyPost", "company": null, "street1": "417 Montgomery Street", @@ -421,10 +421,10 @@ "verifications": {} }, "buyer_address": { - "id": "adr_5a0dc9a4ba4c11ee8df2ac1f6bc539ae", + "id": "adr_fd6f173729d011ef97e1ac1f6bc539aa", "object": "Address", - "created_at": "2024-01-24T00:05:58+00:00", - "updated_at": "2024-01-24T00:05:58+00:00", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:06+00:00", "name": "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", @@ -474,122 +474,468 @@ "refunded": false } ], - "id": "shp_ca14f75e17154537a4cd8b80d31e0825", + "id": "shp_807ca6fd99554549bfd47a052fbaa60d", + "object": "Shipment" + }, + { + "created_at": "2024-06-13T22:05:05Z", + "is_return": false, + "messages": [], + "mode": "test", + "options": { + "currency": "USD", + "payment": { + "type": "SENDER" + }, + "date_advance": 0 + }, + "reference": null, + "status": "unknown", + "tracking_code": "9434600110368051717341", + "updated_at": "2024-06-13T22:05:07Z", + "batch_id": null, + "batch_status": null, + "batch_message": null, + "customs_info": null, + "from_address": { + "id": "adr_fd711ae529d011ef87e1ac1f6bc539ae", + "object": "Address", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:05+00:00", + "name": "EasyPost", + "company": null, + "street1": "417 Montgomery Street", + "street2": "5th Floor", + "city": "San Francisco", + "state": "CA", + "zip": "94104", + "country": "US", + "phone": "4153334445", + "email": "support@easypost.com", + "mode": "test", + "carrier_facility": null, + "residential": null, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": {} + }, + "insurance": null, + "order_id": "order_cee9d9ffe81c48e78df4a3ca7fff475a", + "parcel": { + "id": "prcl_1fec56736e344110a29480715c6c85ef", + "object": "Parcel", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", + "length": null, + "width": null, + "height": null, + "predefined_package": null, + "weight": 17.5, + "mode": "test" + }, + "postage_label": { + "object": "PostageLabel", + "id": "pl_96f98442c6624209aa826b13810d0d5e", + "created_at": "2024-06-13T22:05:07Z", + "updated_at": "2024-06-13T22:05:07Z", + "date_advance": 0, + "integrated_form": "none", + "label_date": "2024-06-13T22:05:07Z", + "label_resolution": 300, + "label_size": "4x6", + "label_type": "default", + "label_file_type": "image/png", + "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240613/e8e76bff1675af445fb02ed17df8950200.png", + "label_pdf_url": null, + "label_zpl_url": null, + "label_epl2_url": null, + "label_file": null + }, + "rates": [ + { + "id": "rate_09685a2c90464d0fa0f7526a64ac897c", + "object": "Rate", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", + "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_9d3dea6c4d744b3587310f516f6ac91b", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_eb2e64be35b14b43822b283376a7fc37", + "object": "Rate", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", + "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_9d3dea6c4d744b3587310f516f6ac91b", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_16592d73a81346a685e3aedee7c0ca07", + "object": "Rate", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", + "mode": "test", + "service": "GroundAdvantage", + "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_9d3dea6c4d744b3587310f516f6ac91b", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_69dd4a338c234461a3b5f7a3981919fb", + "object": "Rate", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", + "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_9d3dea6c4d744b3587310f516f6ac91b", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + { + "id": "rate_ac2db535d9f3469b953ec2e7532f0a11", + "object": "Rate", + "created_at": "2024-06-13T22:05:05Z", + "updated_at": "2024-06-13T22:05:05Z", + "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_9d3dea6c4d744b3587310f516f6ac91b", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + } + ], + "refund_status": null, + "scan_form": null, + "selected_rate": { + "id": "rate_69dd4a338c234461a3b5f7a3981919fb", + "object": "Rate", + "created_at": "2024-06-13T22:05:07Z", + "updated_at": "2024-06-13T22:05:07Z", + "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_9d3dea6c4d744b3587310f516f6ac91b", + "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" + }, + "tracker": { + "id": "trk_01654fc4d2e34d1f94488e788c2cf12b", + "object": "Tracker", + "mode": "test", + "tracking_code": "9434600110368051717341", + "status": "unknown", + "status_detail": "unknown", + "created_at": "2024-06-13T22:05:07Z", + "updated_at": "2024-06-13T22:05:07Z", + "signed_by": null, + "weight": null, + "est_delivery_date": null, + "shipment_id": "shp_9d3dea6c4d744b3587310f516f6ac91b", + "carrier": "USPS", + "tracking_details": [], + "fees": [], + "carrier_detail": null, + "public_url": "https://track.easypost.com/djE6dHJrXzAxNjU0ZmM0ZDJlMzRkMWY5NDQ4OGU3ODhjMmNmMTJi" + }, + "to_address": { + "id": "adr_fd6f173729d011ef97e1ac1f6bc539aa", + "object": "Address", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:06+00:00", + "name": "DR. STEVE BRULE", + "company": null, + "street1": "179 N HARBOR DR", + "street2": "", + "city": "REDONDO BEACH", + "state": "CA", + "zip": "90277-2506", + "country": "US", + "phone": "8573875756", + "email": "DR_STEVE_BRULE@GMAIL.COM", + "mode": "test", + "carrier_facility": null, + "residential": false, + "federal_tax_id": null, + "state_tax_id": 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_fd711ae529d011ef87e1ac1f6bc539ae", + "object": "Address", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:05+00:00", + "name": "EasyPost", + "company": null, + "street1": "417 Montgomery Street", + "street2": "5th Floor", + "city": "San Francisco", + "state": "CA", + "zip": "94104", + "country": "US", + "phone": "4153334445", + "email": "support@easypost.com", + "mode": "test", + "carrier_facility": null, + "residential": null, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": {} + }, + "buyer_address": { + "id": "adr_fd6f173729d011ef97e1ac1f6bc539aa", + "object": "Address", + "created_at": "2024-06-13T22:05:05+00:00", + "updated_at": "2024-06-13T22:05:06+00:00", + "name": "DR. STEVE BRULE", + "company": null, + "street1": "179 N HARBOR DR", + "street2": "", + "city": "REDONDO BEACH", + "state": "CA", + "zip": "90277-2506", + "country": "US", + "phone": "8573875756", + "email": "DR_STEVE_BRULE@GMAIL.COM", + "mode": "test", + "carrier_facility": null, + "residential": false, + "federal_tax_id": null, + "state_tax_id": null, + "verifications": { + "zip4": { + "success": true, + "errors": [], + "details": null + }, + "delivery": { + "success": true, + "errors": [], + "details": { + "latitude": 33.8436, + "longitude": -118.39177, + "time_zone": "America/Los_Angeles" + } + } + } + }, + "forms": [], + "fees": [ + { + "object": "Fee", + "type": "LabelFee", + "amount": "0.00000", + "charged": true, + "refunded": false + }, + { + "object": "Fee", + "type": "PostageFee", + "amount": "6.26000", + "charged": true, + "refunded": false + } + ], + "id": "shp_9d3dea6c4d744b3587310f516f6ac91b", "object": "Shipment" } ], "rates": [ { - "id": "rate_985c0d7c85f545ecb6367f377df13453", + "id": "rate_b137a81f4a954f518ad5ca3da6c6277f", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": "USPS", - "rate": "6.88", + "rate": "13.79", "currency": "USD", - "retail_rate": "9.80", + "retail_rate": "22.30", "retail_currency": "USD", - "list_rate": "8.25", + "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_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_01c4b156f83247d9a8087b60ba19a4e0", + "id": "rate_f9de392f3c4a4bb2b4bef51e2b7a565d", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", - "rate": "5.07", + "rate": "11.33", "currency": "USD", - "retail_rate": "6.70", + "retail_rate": "17.50", "retail_currency": "USD", - "list_rate": "5.07", + "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_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_b499467fd724497caf04475555082734", + "id": "rate_ed64f8b52c6e488cbd6f2bb5dd555852", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "5.07", + "rate": "11.33", "currency": "USD", - "retail_rate": "6.70", + "retail_rate": "17.50", "retail_currency": "USD", - "list_rate": "5.07", + "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_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_b35f9780e45d463a9cf672f04fafa3c3", + "id": "rate_c0a8e97ac71d40109f91aadc18af3521", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": "USPS", - "rate": "5.07", + "rate": "11.33", "currency": "USD", - "retail_rate": "6.70", + "retail_rate": "17.50", "retail_currency": "USD", - "list_rate": "5.07", + "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_ca14f75e17154537a4cd8b80d31e0825", + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" }, { - "id": "rate_b1bac17f8cc6444f8d192ed09965f667", + "id": "rate_a25e227ebdfc4fa2adb9a2e2a5a2460d", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": "USPS", - "rate": "33.10", + "rate": "70.30", "currency": "USD", - "retail_rate": "37.90", + "retail_rate": "80.70", "retail_currency": "USD", - "list_rate": "33.10", + "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": null, + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": null, - "shipment_id": "shp_ca14f75e17154537a4cd8b80d31e0825", + "est_delivery_days": 1, + "shipment_id": "shp_807ca6fd99554549bfd47a052fbaa60d", "carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac" } ], - "id": "order_700c1e0203b24cf192d38ba62aacdb86", + "id": "order_cee9d9ffe81c48e78df4a3ca7fff475a", "object": "Order" } diff --git a/official/fixtures/client-library-fixtures.json b/official/fixtures/client-library-fixtures.json index 54eb320d..a14a39a6 100644 --- a/official/fixtures/client-library-fixtures.json +++ b/official/fixtures/client-library-fixtures.json @@ -157,32 +157,14 @@ }, "shipments": [ { - "from_address": { - "name": "Jack Sparrow", - "street1": "388 Townsend St", - "street2": "Apt 20", - "city": "San Francisco", - "state": "CA", - "zip": "94107", - "country": "US", - "email": "test@example.com", - "phone": "5555555555" - }, - "to_address": { - "name": "Elizabeth Swan", - "street1": "179 N Harbor Dr", - "city": "Redondo Beach", - "state": "CA", - "zip": "90277", - "country": "US", - "email": "test@example.com", - "phone": "5555555555" - }, "parcel": { - "length": 10, - "width": 8, - "height": 4, - "weight": 15.4 + "weight": 10.2 + } + }, + { + "parcel": { + "predefined_package": "FedExBox", + "weight": 17.5 } } ]