diff --git a/src/main/java/org/folio/ncip/FolioRemoteServiceManager.java b/src/main/java/org/folio/ncip/FolioRemoteServiceManager.java index 547cebd..d899dd5 100644 --- a/src/main/java/org/folio/ncip/FolioRemoteServiceManager.java +++ b/src/main/java/org/folio/ncip/FolioRemoteServiceManager.java @@ -750,7 +750,9 @@ public JsonObject requestItem(RequestItemInitiationData initData) throws Excepti servicePointId = ncipProperties.getProperty(agencyId + ".checkout.service.point.id"); } request.put("pickupServicePointId", servicePointId); - request.put("itemLocationCode", locationCode); + if (locationCode != null) { + request.put("itemLocationCode", locationCode); + } String requestUrl = baseUrl + Constants.REQUEST_URL; String requestResponse = callApiPost(requestUrl, request);