Skip to content

Commit ca23b7b

Browse files
authored
Update Method for void
Voids should be PUT not GET
1 parent 4793329 commit ca23b7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/shipengine/ShipEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public List<Map<String, String>> validateAddresses(
307307
public Map<String, String> voidLabelWithLabelId(String labelId) {
308308
Map<String, String> apiResponse = new HashMap<>();
309309
try {
310-
apiResponse = client.get(
310+
apiResponse = client.put(
311311
String.format("/v1/labels/%s/void", labelId),
312312
this.getConfig()
313313
);

0 commit comments

Comments
 (0)