diff --git a/inpostextra/inpost_service_impl.go b/inpostextra/inpost_service_impl.go index f22c7d1..c1d9990 100644 --- a/inpostextra/inpost_service_impl.go +++ b/inpostextra/inpost_service_impl.go @@ -238,7 +238,9 @@ func (s *InpostServiceImpl) OpenParcelLocker(db *gorm.DB, creds *InpostCredentia } openResp := make(map[string]any) - err = s.makeJSONRequest(creds, "POST", "/v1/collect/compartment/open/"+validateResp.SessionUUID, map[string]any{}, &openResp) + err = s.makeJSONRequest(creds, "POST", "/v1/collect/compartment/open/"+validateResp.SessionUUID, map[string]any{ + "sessionUuid": validateResp.SessionUUID, + }, &openResp) if err != nil { return fmt.Errorf("error opening compartment: %v", err) }