diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7b3c3c79e..04e71cfac 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG
+## v8.0.1 (2025-05-27)
+
+- Corrects the endpoint used for creating/updating UPS accounts
+
## v8.0.0 (2025-04-28)
See our [Upgrade Guide](UPGRADE_GUIDE.md#upgrading-from-7x-to-80) for more details.
diff --git a/README.md b/README.md
index fd6d2e95d..88ecfd083 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Add this to your project's POM:
com.easypost
easypost-api-client
- 8.0.0
+ 8.0.1
```
@@ -25,7 +25,7 @@ Add this to your project's POM:
Add this to your project's build file:
```groovy
-implementation "com.easypost:easypost-api-client:8.0.0"
+implementation "com.easypost:easypost-api-client:8.0.1"
```
**NOTE:** [Google Gson](http://code.google.com/p/google-gson/) is required.
diff --git a/VERSION b/VERSION
index ae9a76b92..cd1d2e94f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-8.0.0
+8.0.1
diff --git a/pom.xml b/pom.xml
index f5d54eef8..6353fd608 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.easypost
easypost-api-client
- 8.0.0
+ 8.0.1
jar
com.easypost:easypost-api-client
diff --git a/src/main/java/com/easypost/Constants.java b/src/main/java/com/easypost/Constants.java
index 5485932de..2a4bef91f 100644
--- a/src/main/java/com/easypost/Constants.java
+++ b/src/main/java/com/easypost/Constants.java
@@ -65,12 +65,8 @@ public abstract static class CarrierAccountTypes {
"FedexAccount", "FedexSmartpostAccount"
);
- public static final List UPS_OAUTH_CARRIER_ACCOUNT_TYPES = ImmutableList.of(
- "UpsAccount", "UpsMailInnovationsAccount", "UpsSurepostAccount"
- );
-
public static final List CARRIER_ACCOUNT_TYPES_WITH_CUSTOM_OAUTH = ImmutableList.of(
- "AmazonShippingAccount"
+ "AmazonShippingAccount", "UpsAccount", "UpsMailInnovationsAccount", "UpsSurepostAccount"
);
}
diff --git a/src/main/java/com/easypost/service/CarrierAccountService.java b/src/main/java/com/easypost/service/CarrierAccountService.java
index 34f2a21f7..9c4329188 100644
--- a/src/main/java/com/easypost/service/CarrierAccountService.java
+++ b/src/main/java/com/easypost/service/CarrierAccountService.java
@@ -88,14 +88,9 @@ public List all(final Map params) throws EasyPos
* @throws EasyPostException when the request fails.
*/
public CarrierAccount update(String id, final Map params) throws EasyPostException {
- CarrierAccount carrierAccount = this.retrieve(id);
- String type = (String) carrierAccount.getType();
+ String endpoint = "carrier_accounts/" + id;
Map wrappedParams = new HashMap();
- wrappedParams.put(selectTopLayerKey(type), params);
-
- String endpoint = (Constants.CarrierAccountTypes.UPS_OAUTH_CARRIER_ACCOUNT_TYPES.contains(type)
- ? "ups_oauth_registrations/"
- : "carrier_accounts/") + id;
+ wrappedParams.put("carrier_account", params);
return Requestor.request(RequestMethod.PUT, endpoint, wrappedParams, CarrierAccount.class,
client);
@@ -123,8 +118,6 @@ public void delete(String id) throws EasyPostException {
private static String selectCarrierAccountCreationEndpoint(final String carrierAccountType) {
if (Constants.CarrierAccountTypes.CARRIER_ACCOUNT_TYPES_WITH_CUSTOM_WORKFLOW.contains(carrierAccountType)) {
return "carrier_accounts/register";
- } else if (Constants.CarrierAccountTypes.UPS_OAUTH_CARRIER_ACCOUNT_TYPES.contains(carrierAccountType)) {
- return "ups_oauth_registrations";
} else if (Constants.CarrierAccountTypes.CARRIER_ACCOUNT_TYPES_WITH_CUSTOM_OAUTH.contains(carrierAccountType)) {
return "carrier_accounts/register_oauth";
} else {
@@ -146,9 +139,7 @@ private static String selectTopLayerKey(final String carrierAccountType) throws
String.format(Constants.ErrorMessages.MISSING_REQUIRED_PARAMETER, "carrier account type"));
}
- if (Constants.CarrierAccountTypes.UPS_OAUTH_CARRIER_ACCOUNT_TYPES.contains(carrierAccountType)) {
- return "ups_oauth_registrations";
- } else if (Constants.CarrierAccountTypes.CARRIER_ACCOUNT_TYPES_WITH_CUSTOM_OAUTH.contains(carrierAccountType)) {
+ if (Constants.CarrierAccountTypes.CARRIER_ACCOUNT_TYPES_WITH_CUSTOM_OAUTH.contains(carrierAccountType)) {
return "carrier_account_oauth_registrations";
} else {
return "carrier_account";
diff --git a/src/test/cassettes/carrier_account/create_with_ups.json b/src/test/cassettes/carrier_account/create_with_ups.json
index 20c3694d8..84c28fdf4 100644
--- a/src/test/cassettes/carrier_account/create_with_ups.json
+++ b/src/test/cassettes/carrier_account/create_with_ups.json
@@ -1,8 +1,8 @@
[
{
- "recordedAt": 1723823790,
+ "recordedAt": 1748029863,
"request": {
- "body": "{\n \"ups_oauth_registrations\": {\n \"account_number\": \"123456789\",\n \"type\": \"UpsAccount\"\n }\n}",
+ "body": "{\n \"carrier_account_oauth_registrations\": {\n \"account_number\": \"123456789\",\n \"type\": \"UpsAccount\"\n }\n}",
"method": "POST",
"headers": {
"Accept-Charset": [
@@ -15,23 +15,23 @@
"application/json"
]
},
- "uri": "https://api.easypost.com/v2/ups_oauth_registrations"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/register_oauth"
},
"response": {
- "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2024-08-16T15:56:30Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2024-08-16T15:56:30Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_307880850ded401bb4e3bb3d68a561a8\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
+ "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2025-05-23T19:51:03Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2025-05-23T19:51:03Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_4e02b530040d413399f4c5d4216632ea\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
"httpVersion": null,
"headers": {
"null": [
"HTTP/1.1 201 Created"
],
"content-length": [
- "1400"
+ "1404"
],
"expires": [
"0"
],
"x-node": [
- "bigweb38nuq"
+ "bigweb55nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -58,23 +58,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf43f66bf76aee786b4c600357f02"
+ "6be4a8f76830d1a7e787bc810049d1d5"
],
"x-proxied": [
- "intlb3nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb4nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.219979"
+ "0.093783"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -84,12 +84,12 @@
"code": 201,
"message": "Created"
},
- "uri": "https://api.easypost.com/v2/ups_oauth_registrations"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/register_oauth"
},
- "duration": 436
+ "duration": 301
},
{
- "recordedAt": 1723823790,
+ "recordedAt": 1748029863,
"request": {
"body": "",
"method": "GET",
@@ -101,23 +101,23 @@
"REDACTED"
]
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_307880850ded401bb4e3bb3d68a561a8"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4e02b530040d413399f4c5d4216632ea"
},
"response": {
- "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2024-08-16T15:56:30Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2024-08-16T15:56:30Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_307880850ded401bb4e3bb3d68a561a8\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
+ "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2025-05-23T19:51:03Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2025-05-23T19:51:03Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_4e02b530040d413399f4c5d4216632ea\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
"httpVersion": null,
"headers": {
"null": [
"HTTP/1.1 200 OK"
],
"content-length": [
- "1400"
+ "1404"
],
"expires": [
"0"
],
"x-node": [
- "bigweb42nuq"
+ "bigweb41nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -144,23 +144,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf43e66bf76aee786b4c700357f95"
+ "6be4a8f36830d1a7e787bc820049d225"
],
"x-proxied": [
- "intlb3nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb3nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.032944"
+ "0.030623"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -170,12 +170,12 @@
"code": 200,
"message": "OK"
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_307880850ded401bb4e3bb3d68a561a8"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4e02b530040d413399f4c5d4216632ea"
},
- "duration": 244
+ "duration": 255
},
{
- "recordedAt": 1723823790,
+ "recordedAt": 1748029864,
"request": {
"body": "",
"method": "DELETE",
@@ -187,7 +187,7 @@
"REDACTED"
]
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_307880850ded401bb4e3bb3d68a561a8"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4e02b530040d413399f4c5d4216632ea"
},
"response": {
"body": "{}",
@@ -203,7 +203,7 @@
"0"
],
"x-node": [
- "bigweb43nuq"
+ "bigweb41nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -223,9 +223,6 @@
"strict-transport-security": [
"max-age\u003d31536000; includeSubDomains; preload"
],
- "x-canary": [
- "direct"
- ],
"x-xss-protection": [
"1; mode\u003dblock"
],
@@ -233,23 +230,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf43a66bf76aee786b4c800357fc9"
+ "6be4a8f66830d1a7e787bc830049d25e"
],
"x-proxied": [
- "intlb3nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb3nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.086467"
+ "0.074559"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -259,8 +256,8 @@
"code": 200,
"message": "OK"
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_307880850ded401bb4e3bb3d68a561a8"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4e02b530040d413399f4c5d4216632ea"
},
- "duration": 290
+ "duration": 282
}
]
\ No newline at end of file
diff --git a/src/test/cassettes/carrier_account/update.json b/src/test/cassettes/carrier_account/update.json
index e2c02dd62..237bdeb4e 100644
--- a/src/test/cassettes/carrier_account/update.json
+++ b/src/test/cassettes/carrier_account/update.json
@@ -1,6 +1,6 @@
[
{
- "recordedAt": 1723823793,
+ "recordedAt": 1748029864,
"request": {
"body": "{\n \"carrier_account\": {\n \"test_credentials\": {},\n \"credentials\": {},\n \"type\": \"DhlEcsAccount\"\n }\n}",
"method": "POST",
@@ -18,20 +18,20 @@
"uri": "https://api.easypost.com/v2/carrier_accounts"
},
"response": {
- "body": "{\n \"readable\": \"DHL eCommerce Solutions\",\n \"test_credentials\": {},\n \"credentials\": {},\n \"created_at\": \"2024-08-16T15:56:33Z\",\n \"description\": \"DHL eCommerce Solutions Account\",\n \"type\": \"DhlEcsAccount\",\n \"reference\": null,\n \"updated_at\": \"2024-08-16T15:56:33Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_67c2a52fc42a43f0abf36b7a56b723f0\",\n \"fields\": {\n \"test_credentials\": {},\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
+ "body": "{\n \"readable\": \"DHL eCommerce\",\n \"test_credentials\": {},\n \"credentials\": {},\n \"created_at\": \"2025-05-23T19:51:04Z\",\n \"description\": \"DHL eCommerce Account\",\n \"type\": \"DhlEcsAccount\",\n \"reference\": null,\n \"updated_at\": \"2025-05-23T19:51:04Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_4aee2085dbb2411e9c77740c63ea548d\",\n \"fields\": {\n \"test_credentials\": {},\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
"httpVersion": null,
"headers": {
"null": [
"HTTP/1.1 201 Created"
],
"content-length": [
- "1469"
+ "1369"
],
"expires": [
"0"
],
"x-node": [
- "bigweb34nuq"
+ "bigweb32nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -51,6 +51,9 @@
"strict-transport-security": [
"max-age\u003d31536000; includeSubDomains; preload"
],
+ "x-canary": [
+ "direct"
+ ],
"x-xss-protection": [
"1; mode\u003dblock"
],
@@ -58,23 +61,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf43a66bf76b1e786b7e000358261"
+ "6be4a8f16830d1a8e787bf960049d31a"
],
"x-proxied": [
- "intlb3nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb4nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.072946"
+ "0.062564"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -86,38 +89,41 @@
},
"uri": "https://api.easypost.com/v2/carrier_accounts"
},
- "duration": 278
+ "duration": 269
},
{
- "recordedAt": 1723823794,
+ "recordedAt": 1748029865,
"request": {
- "body": "",
- "method": "GET",
+ "body": "{\n \"carrier_account\": {\n \"description\": \"My custom description\"\n }\n}",
+ "method": "PUT",
"headers": {
"Accept-Charset": [
"UTF-8"
],
"User-Agent": [
"REDACTED"
+ ],
+ "Content-Type": [
+ "application/json"
]
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_67c2a52fc42a43f0abf36b7a56b723f0"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4aee2085dbb2411e9c77740c63ea548d"
},
"response": {
- "body": "{\n \"readable\": \"DHL eCommerce Solutions\",\n \"test_credentials\": {},\n \"credentials\": {},\n \"created_at\": \"2024-08-16T15:56:33Z\",\n \"description\": \"My custom description\",\n \"type\": \"DhlEcsAccount\",\n \"reference\": null,\n \"updated_at\": \"2024-08-16T15:56:33Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_67c2a52fc42a43f0abf36b7a56b723f0\",\n \"fields\": {\n \"test_credentials\": {},\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
+ "body": "{\n \"readable\": \"DHL eCommerce\",\n \"test_credentials\": {},\n \"credentials\": {},\n \"created_at\": \"2025-05-23T19:51:04Z\",\n \"description\": \"My custom description\",\n \"type\": \"DhlEcsAccount\",\n \"reference\": null,\n \"updated_at\": \"2025-05-23T19:51:05Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_4aee2085dbb2411e9c77740c63ea548d\",\n \"fields\": {\n \"test_credentials\": {},\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
"httpVersion": null,
"headers": {
"null": [
"HTTP/1.1 200 OK"
],
"content-length": [
- "1459"
+ "1369"
],
"expires": [
"0"
],
"x-node": [
- "bigweb38nuq"
+ "bigweb41nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -144,23 +150,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf44166bf76b2e786b7fb0035836d"
+ "6be4a8f16830d1a9e787bf980049d393"
],
"x-proxied": [
- "intlb3nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb3nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.033130"
+ "0.090270"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -170,43 +176,40 @@
"code": 200,
"message": "OK"
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_67c2a52fc42a43f0abf36b7a56b723f0"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4aee2085dbb2411e9c77740c63ea548d"
},
- "duration": 238
+ "duration": 316
},
{
- "recordedAt": 1723823793,
+ "recordedAt": 1748029865,
"request": {
- "body": "{\n \"carrier_account\": {\n \"description\": \"My custom description\"\n }\n}",
- "method": "PUT",
+ "body": "",
+ "method": "GET",
"headers": {
"Accept-Charset": [
"UTF-8"
],
"User-Agent": [
"REDACTED"
- ],
- "Content-Type": [
- "application/json"
]
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_67c2a52fc42a43f0abf36b7a56b723f0"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4aee2085dbb2411e9c77740c63ea548d"
},
"response": {
- "body": "{\n \"readable\": \"DHL eCommerce Solutions\",\n \"test_credentials\": {},\n \"credentials\": {},\n \"created_at\": \"2024-08-16T15:56:33Z\",\n \"description\": \"My custom description\",\n \"type\": \"DhlEcsAccount\",\n \"reference\": null,\n \"updated_at\": \"2024-08-16T15:56:33Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_67c2a52fc42a43f0abf36b7a56b723f0\",\n \"fields\": {\n \"test_credentials\": {},\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
+ "body": "{\n \"readable\": \"DHL eCommerce\",\n \"test_credentials\": {},\n \"credentials\": {},\n \"created_at\": \"2025-05-23T19:51:04Z\",\n \"description\": \"My custom description\",\n \"type\": \"DhlEcsAccount\",\n \"reference\": null,\n \"updated_at\": \"2025-05-23T19:51:05Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_4aee2085dbb2411e9c77740c63ea548d\",\n \"fields\": {\n \"test_credentials\": {},\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
"httpVersion": null,
"headers": {
"null": [
"HTTP/1.1 200 OK"
],
"content-length": [
- "1459"
+ "1369"
],
"expires": [
"0"
],
"x-node": [
- "bigweb36nuq"
+ "bigweb43nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -226,6 +229,9 @@
"strict-transport-security": [
"max-age\u003d31536000; includeSubDomains; preload"
],
+ "x-canary": [
+ "direct"
+ ],
"x-xss-protection": [
"1; mode\u003dblock"
],
@@ -233,23 +239,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf43a66bf76b1e786b7fa0035831c"
+ "6be4a8f26830d1a9e787bf9a0049d410"
],
"x-proxied": [
- "intlb4nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb3nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.092559"
+ "0.033165"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -259,12 +265,12 @@
"code": 200,
"message": "OK"
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_67c2a52fc42a43f0abf36b7a56b723f0"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4aee2085dbb2411e9c77740c63ea548d"
},
- "duration": 296
+ "duration": 242
},
{
- "recordedAt": 1723823794,
+ "recordedAt": 1748029865,
"request": {
"body": "",
"method": "DELETE",
@@ -276,7 +282,7 @@
"REDACTED"
]
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_67c2a52fc42a43f0abf36b7a56b723f0"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4aee2085dbb2411e9c77740c63ea548d"
},
"response": {
"body": "{}",
@@ -292,7 +298,7 @@
"0"
],
"x-node": [
- "bigweb43nuq"
+ "bigweb55nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -312,9 +318,6 @@
"strict-transport-security": [
"max-age\u003d31536000; includeSubDomains; preload"
],
- "x-canary": [
- "direct"
- ],
"x-xss-protection": [
"1; mode\u003dblock"
],
@@ -322,23 +325,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf43f66bf76b2e786b7fc003583b7"
+ "6be4a8f46830d1a9e787bf9b0049d449"
],
"x-proxied": [
- "intlb4nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb4nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.059553"
+ "0.054416"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -348,8 +351,8 @@
"code": 200,
"message": "OK"
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_67c2a52fc42a43f0abf36b7a56b723f0"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_4aee2085dbb2411e9c77740c63ea548d"
},
- "duration": 269
+ "duration": 258
}
]
\ No newline at end of file
diff --git a/src/test/cassettes/carrier_account/update_ups.json b/src/test/cassettes/carrier_account/update_ups.json
index 2491830d3..52977e65b 100644
--- a/src/test/cassettes/carrier_account/update_ups.json
+++ b/src/test/cassettes/carrier_account/update_ups.json
@@ -1,8 +1,8 @@
[
{
- "recordedAt": 1723823786,
+ "recordedAt": 1748029861,
"request": {
- "body": "{\n \"ups_oauth_registrations\": {\n \"account_number\": \"123456789\",\n \"type\": \"UpsAccount\"\n }\n}",
+ "body": "{\n \"carrier_account_oauth_registrations\": {\n \"account_number\": \"123456789\",\n \"type\": \"UpsAccount\"\n }\n}",
"method": "POST",
"headers": {
"Accept-Charset": [
@@ -15,10 +15,10 @@
"application/json"
]
},
- "uri": "https://api.easypost.com/v2/ups_oauth_registrations"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/register_oauth"
},
"response": {
- "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2024-08-16T15:56:26Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2024-08-16T15:56:26Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_1f9cf202a5f64d388583b217e4e9e115\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
+ "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2025-05-23T19:51:01Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2025-05-23T19:51:01Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_ee686a5ce36748d7b8af5f15097d13d4\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
"httpVersion": null,
"headers": {
"null": [
@@ -31,7 +31,7 @@
"0"
],
"x-node": [
- "bigweb34nuq"
+ "bigweb54nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -58,23 +58,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf43b66bf76aae786b4a100357b39"
+ "6be4a8f36830d1a5e787bc610049cfde"
],
"x-proxied": [
- "intlb4nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb3nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.083179"
+ "0.083741"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -84,40 +84,43 @@
"code": 201,
"message": "Created"
},
- "uri": "https://api.easypost.com/v2/ups_oauth_registrations"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/register_oauth"
},
- "duration": 294
+ "duration": 297
},
{
- "recordedAt": 1723823787,
+ "recordedAt": 1748029862,
"request": {
- "body": "",
- "method": "GET",
+ "body": "{\n \"carrier_account\": {\n \"account_number\": \"987654321\"\n }\n}",
+ "method": "PUT",
"headers": {
"Accept-Charset": [
"UTF-8"
],
"User-Agent": [
"REDACTED"
+ ],
+ "Content-Type": [
+ "application/json"
]
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_1f9cf202a5f64d388583b217e4e9e115"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_ee686a5ce36748d7b8af5f15097d13d4"
},
"response": {
- "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2024-08-16T15:56:26Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2024-08-16T15:56:27Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_1f9cf202a5f64d388583b217e4e9e115\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
+ "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2025-05-23T19:51:01Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2025-05-23T19:51:02Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_ee686a5ce36748d7b8af5f15097d13d4\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
"httpVersion": null,
"headers": {
"null": [
"HTTP/1.1 200 OK"
],
"content-length": [
- "1400"
+ "1404"
],
"expires": [
"0"
],
"x-node": [
- "bigweb41nuq"
+ "bigweb42nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -144,23 +147,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf44066bf76abe786b4a500357c46"
+ "6be4a8f16830d1a5e787bc630049d05b"
],
"x-proxied": [
- "intlb4nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb4nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.039819"
+ "0.076048"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -170,43 +173,40 @@
"code": 200,
"message": "OK"
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_1f9cf202a5f64d388583b217e4e9e115"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_ee686a5ce36748d7b8af5f15097d13d4"
},
- "duration": 239
+ "duration": 292
},
{
- "recordedAt": 1723823787,
+ "recordedAt": 1748029862,
"request": {
- "body": "{\n \"ups_oauth_registrations\": {\n \"account_number\": \"987654321\"\n }\n}",
- "method": "PUT",
+ "body": "",
+ "method": "GET",
"headers": {
"Accept-Charset": [
"UTF-8"
],
"User-Agent": [
"REDACTED"
- ],
- "Content-Type": [
- "application/json"
]
},
- "uri": "https://api.easypost.com/v2/ups_oauth_registrations/ca_1f9cf202a5f64d388583b217e4e9e115"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_ee686a5ce36748d7b8af5f15097d13d4"
},
"response": {
- "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2024-08-16T15:56:26Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2024-08-16T15:56:27Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_1f9cf202a5f64d388583b217e4e9e115\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
+ "body": "{\n \"readable\": \"UPS\",\n \"credentials\": {},\n \"created_at\": \"2025-05-23T19:51:01Z\",\n \"description\": null,\n \"type\": \"UpsAccount\",\n \"reference\": null,\n \"updated_at\": \"2025-05-23T19:51:02Z\",\n \"clone\": false,\n \"billing_type\": \"carrier\",\n \"logo\": null,\n \"id\": \"ca_ee686a5ce36748d7b8af5f15097d13d4\",\n \"fields\": {\n \"credentials\": {}\n },\n \"object\": \"CarrierAccount\"\n}",
"httpVersion": null,
"headers": {
"null": [
"HTTP/1.1 200 OK"
],
"content-length": [
- "1400"
+ "1404"
],
"expires": [
"0"
],
"x-node": [
- "bigweb43nuq"
+ "bigweb34nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -226,9 +226,6 @@
"strict-transport-security": [
"max-age\u003d31536000; includeSubDomains; preload"
],
- "x-canary": [
- "direct"
- ],
"x-xss-protection": [
"1; mode\u003dblock"
],
@@ -236,23 +233,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf43e66bf76abe786b4a400357be6"
+ "6be4a8f26830d1a6e787bc640049d0af"
],
"x-proxied": [
- "intlb4nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb4nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.064659"
+ "0.029771"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -262,12 +259,12 @@
"code": 200,
"message": "OK"
},
- "uri": "https://api.easypost.com/v2/ups_oauth_registrations/ca_1f9cf202a5f64d388583b217e4e9e115"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_ee686a5ce36748d7b8af5f15097d13d4"
},
- "duration": 270
+ "duration": 245
},
{
- "recordedAt": 1723823788,
+ "recordedAt": 1748029862,
"request": {
"body": "",
"method": "DELETE",
@@ -279,7 +276,7 @@
"REDACTED"
]
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_1f9cf202a5f64d388583b217e4e9e115"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_ee686a5ce36748d7b8af5f15097d13d4"
},
"response": {
"body": "{}",
@@ -295,7 +292,7 @@
"0"
],
"x-node": [
- "bigweb34nuq"
+ "bigweb53nuq"
],
"x-frame-options": [
"SAMEORIGIN"
@@ -322,23 +319,23 @@
"nosniff"
],
"x-ep-request-uuid": [
- "8a4bf43a66bf76ace786b4a600357c98"
+ "6be4a8f46830d1a6e787bc650049d0eb"
],
"x-proxied": [
- "intlb3nuq c0f5e722d1",
- "extlb1nuq b6e1b5034c"
+ "intlb4nuq 668d3fc830",
+ "extlb1nuq 99aac35317"
],
"referrer-policy": [
"strict-origin-when-cross-origin"
],
"x-runtime": [
- "0.060550"
+ "0.193067"
],
"content-type": [
"application/json; charset\u003dutf-8"
],
"x-version-label": [
- "easypost-202408152333-48cda4a73e-master"
+ "easypost-202505231841-d89645a184-master"
],
"cache-control": [
"private, no-cache, no-store"
@@ -348,8 +345,8 @@
"code": 200,
"message": "OK"
},
- "uri": "https://api.easypost.com/v2/carrier_accounts/ca_1f9cf202a5f64d388583b217e4e9e115"
+ "uri": "https://api.easypost.com/v2/carrier_accounts/ca_ee686a5ce36748d7b8af5f15097d13d4"
},
- "duration": 261
+ "duration": 408
}
]
\ No newline at end of file